prevent exception
This commit is contained in:
parent
e60871903d
commit
a8ae27eb64
@ -120,7 +120,11 @@ 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
|
||||
if ($playerItem->teamId >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user