public static void update(Player updated) {
		System.out.println("update friends");
		int worldId = -1;
		for(World world : Worlds.getWorlds()) {
			if (world.getPlayers().contains(updated)) {
				worldId = world.getId();
				break;
			}
		}
		System.out.println("Second : "+updated.getPrivateChat());
		for (World world : Worlds.getWorlds()) {
			for (Player cyclePlayer : world.getPlayers()) {
				if (cyclePlayer.getFriends().containsKey(updated.getUsername())) {
					if (updated.getPrivateChat() == 0) {
						PacketSender.sendUpdatedFriend(cyclePlayer, updated.getUsername(), worldId, cyclePlayer.getFriends().get(updated.getUsername()));
					} else if (updated.getPrivateChat() == 1) {//do rights check, admins can see them, but moderators can't see them
						if (updated.getFriends().containsKey(cyclePlayer.getUsername())) {
							PacketSender.sendUpdatedFriend(cyclePlayer, updated.getUsername(), worldId, cyclePlayer.getFriends().get(updated.getUsername()));	
						} else {
							PacketSender.sendUpdatedFriend(cyclePlayer, updated.getUsername(), 0, cyclePlayer.getFriends().get(updated.getUsername()));
						}
					} else if (updated.getPrivateChat() == 2) {//rights check here as well
						PacketSender.sendUpdatedFriend(cyclePlayer, updated.getUsername(), 0, cyclePlayer.getFriends().get(updated.getUsername()));
					}
				}
			}
		}
	}