Don't try to force player into team in a non-team mode

This commit is contained in:
Max Klaversma 2014-02-13 19:16:16 +01:00 committed by Steffen Schröder
parent e51670a2ac
commit f6d7bb3d88

View File

@ -324,7 +324,9 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
}
try {
if($smallestTeam != -1) {
$this->maniaControl->client->forcePlayerTeam($player->login, $smallestTeam);
}
} catch(Exception $e) {
// TODO: only possible valid exceptions should be "wrong login" or "not in team mode" - throw others (like connection error)
}