mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Fixed #1948 /whitelist list is now working
This commit is contained in:
parent
bb08da701b
commit
57299b9a29
@ -63,7 +63,7 @@ class WhitelistCommand extends VanillaCommand{
|
||||
return true;
|
||||
case "list":
|
||||
$result = "";
|
||||
foreach($sender->getServer()->getWhitelisted() as $player){
|
||||
foreach($sender->getServer()->getWhitelisted()->getAll(true) as $player){
|
||||
$result .= $player . ", ";
|
||||
}
|
||||
$sender->sendMessage("White-listed players: " . substr($result, 0, -2));
|
||||
|
Loading…
x
Reference in New Issue
Block a user