Hide widget when player is in playermode for other reasons (admin force)
This commit is contained in:
		
				
					committed by
					
						 Steffen Schröder
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							773ad12c1d
						
					
				
				
					commit
					2fd9ae9d16
				
			| @@ -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); | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user