prevent exception

This commit is contained in:
Steffen Schröder 2014-06-14 18:07:18 +02:00
parent e60871903d
commit a8ae27eb64

View File

@ -120,9 +120,13 @@ class PlayerManager implements CallbackListener, TimerListener {
if ($playerItem->playerId <= 0) {
continue;
}
try {
$detailedPlayerInfo = $this->maniaControl->client->getDetailedPlayerInfo($playerItem->login);
} catch (UnknownPlayerException $exception) {
continue;
}
//Check if the Player is in a Team, to notify if its a TeamMode or not
// Check if the Player is in a Team, to notify if its a TeamMode or not
if ($playerItem->teamId >= 0) {
$this->maniaControl->server->setTeamMode(true);
}