From 1014052a57e13cefe4c2241dc96c3891faeb0adb Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 8 Jun 2013 19:23:16 +0200 Subject: [PATCH] Removed /invisible --- src/API/ConsoleAPI.php | 21 --------------------- src/API/ServerAPI.php | 5 ----- 2 files changed, 26 deletions(-) diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index b9c297779..6786e0883 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -41,7 +41,6 @@ class ConsoleAPI{ $this->register("help", "[page|command name]", array($this, "defaultCommands")); $this->register("status", "", array($this, "defaultCommands")); $this->register("difficulty", "<0|1|2>", array($this, "defaultCommands")); - $this->register("invisible", "", array($this, "defaultCommands")); $this->register("stop", "", array($this, "defaultCommands")); $this->register("defaultgamemode", "", array($this, "defaultCommands")); $this->server->api->ban->cmdWhitelist("help"); @@ -81,26 +80,6 @@ class ConsoleAPI{ $this->server->api->setProperty("gamemode", $gms[strtolower($params[0])]); $output .= "Default Gamemode is now ".strtoupper($this->server->getGamemode()).".\n"; break; - case "invisible": - $p = strtolower(array_shift($params)); - switch($p){ - case "on": - case "true": - case "1": - $output .= "Server is invisible\n"; - $this->server->api->setProperty("server-invisible", true); - break; - case "off": - case "false": - case "0": - $output .= "Server is visible\n"; - $this->server->api->setProperty("server-invisible", false); - break; - default: - $output .= "Usage: /invisible \n"; - break; - } - break; case "status": if(!($issuer instanceof Player) and $issuer === "console"){ $this->server->debugInfo(true); diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 647485f28..c5f8c47dd 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -64,7 +64,6 @@ class ServerAPI{ "server-ip" => "", "server-port" => 19132, "server-type" => "normal", - "server-invisible" => false, "memory-limit" => "128M", "last-update" => false, "white-list" => false, @@ -226,12 +225,8 @@ class ServerAPI{ $this->setProperty("memory-limit", "128M"); } - if(!$this->config->exists("server-invisible")){ - $this->config->set("server-invisible", false); - } if($this->server instanceof PocketMinecraftServer){ $this->server->setType($this->getProperty("server-type")); - $this->server->invisible = $this->getProperty("server-invisible"); $this->server->maxClients = $this->getProperty("max-players"); $this->server->description = $this->getProperty("description"); $this->server->motd = $this->getProperty("motd");