public static void loggedIn(Player player, int worldId) {
		if (player.getPrivateChat() == 2) {
			return;
		}
		for(World world : Worlds.getWorlds()) {
			for(Player cyclePlayer : world.getPlayers()) {
				for(String friend : cyclePlayer.getFriends().keySet()) {
					if (friend != null) {
						if (friend.equalsIgnoreCase(player.getUsername())) {
							if (player.getPrivateChat() == 0) {
								PacketSender.sendUpdatedFriend(cyclePlayer, friend, worldId, cyclePlayer.getFriends().get(friend));//WRONG
							} else if (player.getPrivateChat() == 1 & player.getFriends().containsKey(cyclePlayer.getUsername())) {
								PacketSender.sendUpdatedFriend(cyclePlayer, friend, worldId, cyclePlayer.getFriends().get(friend));
							}
						}
					}
				}
			}
		}
	}