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:
Dylan K. Taylor 2020-07-21 11:46:11 +01:00
parent 8bba25f4f5
commit 5b9453af43

View File

@ -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]));