Made /list output similar to PC output

This commit is contained in:
Shoghi Cervantes 2015-06-09 12:21:00 +02:00
parent ec226105e4
commit ac2bcf7e30
2 changed files with 3 additions and 2 deletions

View File

@ -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"));
}

View File

@ -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;
}