mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 15:19:56 +00:00
Made /list output similar to PC output
This commit is contained in:
parent
ec226105e4
commit
ac2bcf7e30
@ -114,7 +114,7 @@ class SimpleCommandMap implements CommandMap{
|
||||
$this->register("pocketmine", new TimingsCommand("timings"));
|
||||
$this->register("pocketmine", new ReloadCommand("reload"));
|
||||
|
||||
if($this->server->getProperty("debug.commands", false) === true){
|
||||
if($this->server->getProperty("debug.commands", false)){
|
||||
$this->register("pocketmine", new StatusCommand("status"));
|
||||
$this->register("pocketmine", new GarbageCollectorCommand("gc"));
|
||||
}
|
||||
|
@ -52,7 +52,8 @@ class ListCommand extends VanillaCommand{
|
||||
}
|
||||
}
|
||||
|
||||
$sender->sendMessage(new TranslationContainer("%commands.players.list " . substr($online, 0, -2), [$onlineCount, $sender->getServer()->getMaxPlayers()]));
|
||||
$sender->sendMessage(new TranslationContainer("commands.players.list", [$onlineCount, $sender->getServer()->getMaxPlayers()]));
|
||||
$sender->sendMessage(substr($online, 0, -2));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user