Small Queue bugfix
This commit is contained in:
parent
dbd850dfaa
commit
f5bd8fd8f2
@ -159,7 +159,7 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
||||
public function handlePlayerDisconnect(array $callback) {
|
||||
$login = $callback[1]->login;
|
||||
$player = $this->maniaControl->playerManager->getPlayer($login);
|
||||
if(isset($this->spectators[$player->login])) unset($this->spectators[$player->login]);
|
||||
if(isset($this->spectators[$login])) unset($this->spectators[$login]);
|
||||
$this->removePlayerFromQueue($player);
|
||||
$this->moveFirstPlayerToPlay();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user