server is empty method

This commit is contained in:
Steffen Schröder 2014-06-10 23:29:28 +02:00
parent 5b4fee140a
commit 57b0e51746

View File

@ -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);
}
}