coding & phpdoc improvements continued

This commit is contained in:
Steffen Schröder
2014-05-27 22:44:22 +02:00
parent 9e016cc770
commit c284feb843
12 changed files with 23 additions and 40 deletions

View File

@ -215,8 +215,7 @@ class ServerCommands implements CallbackListener, CommandListener, ManialinkPage
public function each5Seconds() {
// Empty shutdown
if ($this->serverShutdownEmpty) {
$players = $this->maniaControl->playerManager->getPlayers();
if (count($players) <= 0) {
if ($this->maniaControl->playerManager->getPlayerCount(false) <= 0) {
$this->shutdownServer('empty');
}
}