From b759863bb1734f80eafda0ea517817090e2f2bdc Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Mon, 22 Apr 2013 16:39:33 +0200 Subject: [PATCH] Changed /list to be the same as vanilla --- src/API/PlayerAPI.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index c801470a8..5f6cc9475 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;