Fixed /invisible not working

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-11 22:35:47 +02:00
parent f7af97c651
commit b9498275a4

View File

@ -71,13 +71,13 @@ class ConsoleAPI{
case "true": case "true":
case "1": case "1":
$output .= "Server is invisible\n"; $output .= "Server is invisible\n";
$this->server->api->setProperty("invisible", true); $this->server->api->setProperty("server-invisible", true);
break; break;
case "off": case "off":
case "false": case "false":
case "0": case "0":
$output .= "Server is visible\n"; $output .= "Server is visible\n";
$this->server->api->setProperty("invisible", false); $this->server->api->setProperty("server-invisible", false);
break; break;
default: default:
$output .= "Usage: /invisible <on | off>\n"; $output .= "Usage: /invisible <on | off>\n";