public void joinWait(Client c, int team) {
		if (c.playerEquipment[c.playerHat] > 0 || c.playerEquipment[c.playerCape] > 0) {
			c.sendMessage("You may not wear capes or helmets inside of castle wars.");
			return;
		}
		if (team == 1) {
			if (saradominWait.size() > zamorakWait.size()) {
				c.sendMessage("This team is currently full.");
				return;
			} else {
				saradominWait.add(c.playerId);
				c.castleWarsTeam = 1;
			}
		} else if (team == 2) {
			if (zamorakWait.size() > saradominWait.size()) {
				c.sendMessage("This team is currently full.");
				return;
			} else {
				zamorakWait.add(c.playerId);
				c.castleWarsTeam = 2;
			}
		} else {
			if (zamorakWait.size() > saradominWait.size()) {
				saradominWait.add(c.playerId);
				c.sendMessage("You have been added to the Saradomin team.");
				c.castleWarsTeam = 1;
			} else {
				zamorakWait.add(c.playerId);
				c.sendMessage("You have been added to the Zamorak team.");
				c.castleWarsTeam = 2;
			}
		}
		toWaitingRoom(c, c.castleWarsTeam);
	}