server is empty method
This commit is contained in:
parent
5b4fee140a
commit
57b0e51746
@ -415,4 +415,13 @@ class Server implements CallbackListener {
|
|||||||
public function isTeamMode() {
|
public function isTeamMode() {
|
||||||
return $this->teamMode;
|
return $this->teamMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the Servers is empty
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function isEmpty() {
|
||||||
|
return ($this->maniaControl->playerManager->getPlayerCount(false) === 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user