Corrected events

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-13 17:24:22 +01:00
parent bf1d78d1e4
commit 44e53ccc1b
2 changed files with 5 additions and 5 deletions

View file

@ -93,7 +93,6 @@ class PocketMinecraftServer{
}
public function loadEvents(){
$this->event("player.add", array($this, "eventHandler"));
$this->action(500000, '$this->time += (int) ($this->timePerSecond / 2);$this->api->dhandle("server.time", $this->time);');
$this->action(5000000, 'if($this->difficulty < 2){$this->api->dhandle("server.regeneration", 1);}');
$this->action(1000000 * 60, '$this->reloadConfig();');
@ -234,9 +233,7 @@ class PocketMinecraftServer{
public function eventHandler($data, $event){
switch($event){
case "player.add":
console("[DEBUG] Player \"".$data["username"]."\" EID ".$data["eid"]." spawned at X ".$data["x"]." Y ".$data["y"]." Z ".$data["z"], true, true, 2);
break;
}
}