Hide widget when player is in playermode for other reasons (admin force)
This commit is contained in:
parent
773ad12c1d
commit
2fd9ae9d16
@ -205,6 +205,15 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
|
|||||||
} else {
|
} else {
|
||||||
$this->removePlayerFromQueue($player->login);
|
$this->removePlayerFromQueue($player->login);
|
||||||
if(isset($this->spectators[$player->login])) unset($this->spectators[$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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user