mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Corrected events
This commit is contained in:
parent
bf1d78d1e4
commit
44e53ccc1b
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue