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"));