- updates for new server properties

- refactored various imports
This commit is contained in:
Steffen Schröder
2014-01-06 16:14:49 +01:00
parent c3a2cd6122
commit c7d325c216
13 changed files with 251 additions and 268 deletions

View File

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