diff --git a/src/pocketmine/command/SimpleCommandMap.php b/src/pocketmine/command/SimpleCommandMap.php index 668288c9f..54f7b2299 100644 --- a/src/pocketmine/command/SimpleCommandMap.php +++ b/src/pocketmine/command/SimpleCommandMap.php @@ -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")); } diff --git a/src/pocketmine/command/defaults/ListCommand.php b/src/pocketmine/command/defaults/ListCommand.php index ea5d5d92b..e17b025c1 100644 --- a/src/pocketmine/command/defaults/ListCommand.php +++ b/src/pocketmine/command/defaults/ListCommand.php @@ -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; }