match settings manager

This commit is contained in:
Steffen Schröder
2014-05-11 15:28:53 +02:00
parent 52be0fab10
commit 0834d2c587
11 changed files with 154 additions and 82 deletions

View File

@ -122,7 +122,7 @@ class PlayerManager implements CallbackListener, TimerListener {
//Check if the Player is in a Team, to notify if its a TeamMode or not
if ($playerItem->teamId != -1) {
$this->maniaControl->server->setTeamMode(true);
$this->maniaControl->server->matchSettingsManager->setTeamMode(true);
}
$player = new Player($this->maniaControl, true);
@ -321,7 +321,7 @@ class PlayerManager implements CallbackListener, TimerListener {
//Check if the Player is in a Team, to notify if its a TeamMode or not
if ($player->teamId != -1) {
$this->maniaControl->server->setTeamMode(true);
$this->maniaControl->server->matchSettingsManager->setTeamMode(true);
}
$prevJoinState = $player->hasJoinedGame;