diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index 79050dbd..9751da2c 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -262,5 +262,6 @@ class ConsoleLoop extends Thread{ $this->wait(); $this->line = false; } + exit(0); } } \ No newline at end of file diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index c2789c68..41d4aca3 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -283,7 +283,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run } public function start(){ - $this->server->start(); + $this->server->init(); unregister_tick_function(array($this->server, "tick")); $this->__destruct(); unset($this->server); diff --git a/src/classes/PocketMinecraftServer.class.php b/src/classes/PocketMinecraftServer.class.php index a660a737..4bdc8a89 100644 --- a/src/classes/PocketMinecraftServer.class.php +++ b/src/classes/PocketMinecraftServer.class.php @@ -307,7 +307,7 @@ class PocketMinecraftServer extends stdClass{ } } - public function start(){ + public function init(){ if($this->mapName !== false and $this->map === false){ $this->loadMap(); $this->loadEntities();