diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 1f07c6ee4..4700ea2fb 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -139,12 +139,7 @@ class ServerAPI{ define("DEBUG", $this->getProperty("debug", 1)); define("ADVANCED_CACHE", $this->getProperty("enable-advanced-cache", false)); define("MAX_CHUNK_RATE", 20 / $this->getProperty("max-chunks-per-second", 8)); //Default rate ~512 kB/s - - if($this->getProperty("port") !== false){ - $this->setProperty("server-port", $this->getProperty("port")); - $this->config->remove("port"); - $this->config->remove("invisible"); - } + $this->server = new PocketMinecraftServer($this->getProperty("server-name"), $this->getProperty("gamemode"), ($seed = $this->getProperty("level-seed")) != "" ? (int) $seed:false, $this->getProperty("server-port"), ($ip = $this->getProperty("server-ip")) != "" ? $ip:"0.0.0.0"); $this->server->api = $this; self::$serverRequest = $this->server;