mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Fixed /invisible not working
This commit is contained in:
@ -71,13 +71,13 @@ class ConsoleAPI{
|
||||
case "true":
|
||||
case "1":
|
||||
$output .= "Server is invisible\n";
|
||||
$this->server->api->setProperty("invisible", true);
|
||||
$this->server->api->setProperty("server-invisible", true);
|
||||
break;
|
||||
case "off":
|
||||
case "false":
|
||||
case "0":
|
||||
$output .= "Server is visible\n";
|
||||
$this->server->api->setProperty("invisible", false);
|
||||
$this->server->api->setProperty("server-invisible", false);
|
||||
break;
|
||||
default:
|
||||
$output .= "Usage: /invisible <on | off>\n";
|
||||
|
Reference in New Issue
Block a user