diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 8b29e3472..6c3374fb3 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -232,8 +232,8 @@ class ServerAPI{ "os" => Utils::getOS(), "version" => MAJOR_VERSION, "protocol" => CURRENT_PROTOCOL, - "online" => count($this->clients), - "max" => $this->maxClients, + "online" => count($this->server->clients), + "max" => $this->server->maxClients, )); }