public void sendJoinClanChat(String username, String clanName) {
		OutputStream stream = new OutputStream();
		stream.writePacketVarShort(7);
		stream.writeByte(1);
		if (!player.inClanChat) {
			int idk = 2;
			int idk3 = 1;
			boolean idk1 = false;
			boolean idk2 = false;
			stream.writeByte(idk);
			if (idk == 1) {
				idk1 = true;
			}
			if (idk == 2) {
				idk2 = true;
			}
			stream.writeLong(4062231702422979939L);
			stream.writeLong(0L);
			stream.writeString(clanName);
			stream.writeByte(0);
			stream.writeByte(0);
			stream.writeByte(-1);
			stream.writeShort(idk3);
			if (idk3 > 0) {
				for (int i = 0; i < idk3; i++) {
					if (idk1) {
						stream.writeLong(0L);// idk probably long username
					}
					if (idk2) {
						stream.writeString(username);
					}
					stream.writeByte(126);
					stream.writeShort(1);
				}
			}
			player.getPackets().sendGameMessage(
					"You join the " + clanName + " clan chat.");
			player.inClanChat = true;
		} else {
			player.getPackets().sendGameMessage(
					"You leave the " + clanName + " clan chat.");
			player.inClanChat = false;
		}
		stream.endPacketVarShort();
		session.write(stream);
	}