Removed API::action()

This commit is contained in:
Shoghi Cervantes
2013-05-31 14:29:46 +02:00
parent 732f5f5168
commit 1376cc860d
3 changed files with 21 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ class PlayerAPI{
}
public function init(){
$this->server->addHandler("server.regeneration", array($this, "handle"));
$this->server->schedule(20 * 15, array($this, "handle"), 1, true, "server.regeneration");
$this->server->addHandler("player.death", array($this, "handle"), 1);
$this->server->api->console->register("list", "", array($this, "commandHandler"));
$this->server->api->console->register("kill", "<player>", array($this, "commandHandler"));

View File

@@ -318,10 +318,6 @@ class ServerAPI{
return $this->server->handle($e, $d);
}
public function action($t, $c, $r = true){
return $this->server->action($t, $c, $r);
}
public function schedule($t, $c, $d, $r = false, $e = "server.schedule"){
return $this->server->schedule($t, $c, $d, $r, $e);
}