mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
Merge branch 'master' of https://github.com/PocketMine/PocketMine-MP
This commit is contained in:
commit
86f9d3e233
@ -277,14 +277,14 @@ class PlayerAPI{
|
||||
}
|
||||
break;
|
||||
case "list":
|
||||
$output .= "There are ".count($this->server->clients)."/".$this->server->maxClients." players online:\n";
|
||||
$cmd_output .= "There are ".count($this->server->clients)."/".$this->server->maxClients." players online:\n";
|
||||
if(count($this->server->clients) == 0){
|
||||
break;
|
||||
}
|
||||
foreach($this->server->clients as $c){
|
||||
$output .= $c->username.", ";
|
||||
$cmd_output .= $c->username.", ";
|
||||
}
|
||||
$output = substr($output, 0, -2)."\n";
|
||||
$output = substr($cmd_output, 0, -2)."\n";
|
||||
break;
|
||||
}
|
||||
return $output;
|
||||
|
Loading…
x
Reference in New Issue
Block a user