mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Removed unused commands
This commit is contained in:
parent
a5229cc34e
commit
a24da0e5ad
@ -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…
x
Reference in New Issue
Block a user