diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index e6cae7bac..0ab3fcd5c 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -87,11 +87,6 @@ class ConsoleAPI{ console("[INFO] Stopping the server..."); $this->server->close(); break; - /*case "restart": - console("[INFO] Restarting the server..."); - $this->server->api->restart = true; - $this->server->close(); - break;*/ case "gamemode": $s = trim(array_shift($params)); if($s == "" or (((int) $s) !== 0 and ((int) $s) !== 1)){ @@ -122,12 +117,6 @@ class ConsoleAPI{ case "save-all": $this->server->save(); break; - case "block": - foreach($this->server->clients as $client){ - $b = $this->server->map->getBlock(round($client->entity->position["x"] - 0.5), round($client->entity->position["y"] - 1), round($client->entity->position["z"] - 0.5)); - console("[INFO] EID ".$client->eid." is over block ".$b[0].":".$b[1]); - } - break; case "help": case "?": console("[INFO] /help: Show available commands");