mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Changed /list to be the same as vanilla
This commit is contained in:
parent
e81793174b
commit
b759863bb1
@ -205,15 +205,14 @@ class PlayerAPI{
|
||||
}
|
||||
break;
|
||||
case "list":
|
||||
$output .= "There are ".count($this->server->clients)."/".$this->server->maxClients." players online:\n";
|
||||
if(count($this->server->clients) == 0){
|
||||
$output .= "No online players.\n";
|
||||
break;
|
||||
}
|
||||
$output .= "Online players: ";
|
||||
foreach($this->server->clients as $c){
|
||||
$output .= $c->username.", ";
|
||||
}
|
||||
$output = substr($output, 0, -2);
|
||||
$output = substr($output, 0, -2)."\n";
|
||||
break;
|
||||
}
|
||||
return $output;
|
||||
|
Loading…
x
Reference in New Issue
Block a user