@SuppressWarnings("deprecation")
	@EventHandler
	public void onQuit(PlayerQuitEvent e) {
		Player p = e.getPlayer();

		if (Frozen.gameStarted) {
			if(Frozen.players.contains(p.getName())){
				Frozen.totalAlive--;
				Frozen.players.remove(p.getName());
				Frozen.gameScoreboard();
			}
			if (Frozen.totalAlive == 1) {
				if (!Frozen.gameEnded) {
					GameManager.endGame();
				}
			}else {
				if(Frozen.frozenOne == p){
					if(!(Bukkit.getOnlinePlayers().length <= 2)) {
						int random = new Random().nextInt(Frozen.players.size());
						String player = Frozen.players.get(random);
						Player pl = Bukkit.getPlayer(player);
						API.setFrozenOne(pl, 5);
					}else {
						GameManager.endGame();
					}
				}	
			}
		}
	}