mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
WhitelistCommand: fixed incorrect implode() parameter order
PHP allows this to work either way for legacy reasons, but glue-first is the canonical way for a long time.
This commit is contained in:
@@ -74,7 +74,7 @@ class WhitelistCommand extends VanillaCommand{
|
||||
case "list":
|
||||
$entries = $sender->getServer()->getWhitelisted()->getAll(true);
|
||||
sort($entries, SORT_STRING);
|
||||
$result = implode($entries, ", ");
|
||||
$result = implode(", ", $entries);
|
||||
$count = count($entries);
|
||||
|
||||
$sender->sendMessage(new TranslationContainer("commands.whitelist.list", [$count, $count]));
|
||||
|
Reference in New Issue
Block a user