public static void update(Clan clan) {
		System.out.println("update clan");
		Player player = Worlds.getPlayer(clan.getOwner());
		long[] names = new long[clan.getMembers().size()];
		byte[][] ranksAndWorlds = new byte[clan.getMembers().size()][2];
		System.out.println(names.length);
		for (int i = 0; i < names.length; i++) {
			System.out.print("iter");
			names[i] = clan.getMembers().get(i);
			System.out.println("lolwut?");
			ranksAndWorlds[i][0] = (byte) Worlds.getWorld(Utilities.longToPlayerName(names[i])).getId();
			if (player.getUsername().equalsIgnoreCase(Utilities.longToPlayerName(names[i]))) {
				ranksAndWorlds[i][1] = (byte)7;
			} else if (player.getFriends().containsKey(Utilities.longToPlayerName(names[i]))) {
				ranksAndWorlds[i][1] = player.getFriends().get(Utilities.longToPlayerName(names[i]));
			} else {
				ranksAndWorlds[i][1] = (byte)127;
			}
		}
		for (int i = 0; i < names.length; i++) {
			System.out.println("names["+i+"] = "+names[i]);
			Player p = Worlds.getPlayer(Utilities.longToPlayerName(names[i]));
			PacketSender.updateClan(p, Utilities.playerNameToLong(clan.getPrefix()), Utilities.playerNameToLong(clan.getOwner()), clan.getKickingPermissions(), names, ranksAndWorlds);
		}
	}