From 6c8e28359926165d0ef518a486a51c055b88ab2a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sun, 30 Dec 2012 20:49:04 +0100 Subject: [PATCH] Function names --- src/API/ConsoleAPI.php | 1 + src/API/ServerAPI.php | 2 +- src/classes/PocketMinecraftServer.class.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index 79050dbdb..9751da2c1 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 c2789c68d..41d4aca38 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 a660a737a..4bdc8a89c 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();