Don't try to force player into team in a non-team mode
This commit is contained in:
parent
e51670a2ac
commit
f6d7bb3d88
@ -324,7 +324,9 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if($smallestTeam != -1) {
|
||||||
$this->maniaControl->client->forcePlayerTeam($player->login, $smallestTeam);
|
$this->maniaControl->client->forcePlayerTeam($player->login, $smallestTeam);
|
||||||
|
}
|
||||||
} catch(Exception $e) {
|
} catch(Exception $e) {
|
||||||
// TODO: only possible valid exceptions should be "wrong login" or "not in team mode" - throw others (like connection error)
|
// TODO: only possible valid exceptions should be "wrong login" or "not in team mode" - throw others (like connection error)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user