Hide widget when player is in playermode for other reasons (admin force)

This commit is contained in:
Max Klaversma 2014-01-27 21:45:28 +01:00 committed by Steffen Schröder
parent 773ad12c1d
commit 2fd9ae9d16

View File

@ -205,6 +205,15 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
} else {
$this->removePlayerFromQueue($player->login);
if(isset($this->spectators[$player->login])) unset($this->spectators[$player->login]);
$found = false;
foreach($this->showPlay as $showPlay) {
if($showPlay['player']->login == $player->login) {
$found = true;
}
}
if(!$found) $this->hideQueueWidget($player);
}
}
}