public void leaveClan (int playerId, int clanId) {
		Client c = (Client)PlayerHandler.players[playerId];
		if(clanId < 0) {
			c.sendMessage("You are not in a clan!");
			return;
			}
		if(clans[clanId] !=null) {
			if(PlayerHandler.players[playerId].playerName.equalsIgnoreCase(clans[clanId].owner)) {
				messageToClan("The owner has left the Clan Chat.", clanId);
				c.getPA().clearClanChat();
				}
			for (int j = 0; j < clans[clanId].members.length; j++)
				if(clans[clanId].members[j] == playerId)
				   clans[clanId].members[j] = -1;
				  
			if(PlayerHandler.players[playerId] != null) {
				PlayerHandler.players[playerId].clanId = -1;
				c.sendMessage("You have left the clan.");
				c.getPA().clearClanChat();
			}
			updateClanChat(clanId);
		} else {
			PlayerHandler.players[playerId].clanId = -1;
			c.sendMessage("You are not in a clan.");
			}
		}