diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index c801470a..5f6cc947 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -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;