mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
Better online player list
This commit is contained in:
parent
2438c9535b
commit
bbbdaa30d1
@ -200,7 +200,11 @@ class PlayerAPI{
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "list":
|
case "list":
|
||||||
$output .= "Player list:\n";
|
if(count($this->server->clients) == 0){
|
||||||
|
$output .= "No online players.\n";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$output .= "Online players: ";
|
||||||
foreach($this->server->clients as $c){
|
foreach($this->server->clients as $c){
|
||||||
$output .= $c->username.", ";
|
$output .= $c->username.", ";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user