diff --git a/application/core/Server/Server.php b/application/core/Server/Server.php index d2fea280..e0f6a718 100644 --- a/application/core/Server/Server.php +++ b/application/core/Server/Server.php @@ -415,4 +415,13 @@ class Server implements CallbackListener { public function isTeamMode() { return $this->teamMode; } + + /** + * Check if the Servers is empty + * + * @return bool + */ + public function isEmpty() { + return ($this->maniaControl->playerManager->getPlayerCount(false) === 0); + } }