public void playerLeave(Player player, String reason) {
		if (players.contains(player)) {
			plugin.sendtoplayer(player, reason + " Ӿ˳");
			removeplayer(player);
			if (player == boss) {
				Hero h = plugin.getHero(player);
				h.setHeroClass(oldclass, false);
				if (bossliving) {
					bossliving = false;
					endGame(EndReason.END_REASON_BOSSLEAVE);
				}
			}
			if (livingplayers.contains(player)) {
				playerDeath(player);
			}

			return;
		}
	}