mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Removed unused commands
This commit is contained in:
parent
a5229cc34e
commit
a24da0e5ad
1 changed files with 0 additions and 11 deletions
|
|
@ -87,11 +87,6 @@ class ConsoleAPI{
|
||||||
console("[INFO] Stopping the server...");
|
console("[INFO] Stopping the server...");
|
||||||
$this->server->close();
|
$this->server->close();
|
||||||
break;
|
break;
|
||||||
/*case "restart":
|
|
||||||
console("[INFO] Restarting the server...");
|
|
||||||
$this->server->api->restart = true;
|
|
||||||
$this->server->close();
|
|
||||||
break;*/
|
|
||||||
case "gamemode":
|
case "gamemode":
|
||||||
$s = trim(array_shift($params));
|
$s = trim(array_shift($params));
|
||||||
if($s == "" or (((int) $s) !== 0 and ((int) $s) !== 1)){
|
if($s == "" or (((int) $s) !== 0 and ((int) $s) !== 1)){
|
||||||
|
|
@ -122,12 +117,6 @@ class ConsoleAPI{
|
||||||
case "save-all":
|
case "save-all":
|
||||||
$this->server->save();
|
$this->server->save();
|
||||||
break;
|
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 "help":
|
||||||
case "?":
|
case "?":
|
||||||
console("[INFO] /help: Show available commands");
|
console("[INFO] /help: Show available commands");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue