Updated APIs to only allow PocketMinecraftServer object

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-26 16:21:50 +01:00
parent 3a0db10d6b
commit cae6285f64
5 changed files with 7 additions and 7 deletions

View File

@ -27,12 +27,12 @@ the Free Software Foundation, either version 3 of the License, or
class EntityAPI{
private $server;
function __construct($server){
function __construct(PocketMinecraftServer $server){
$this->server = $server;
$this->server->addHandler("player.death", array($this, "handle"), 1);
}
public function init(){
$this->server->addHandler("player.death", array($this, "handle"), 1);
$this->server->api->console->register("give", "Give items to a player [DUMMY]", array($this, "commandHandler"));
}