public static void sendMessage(Player from, Player to, byte[] message) {
		if (to.getPrivateChat() == 2 || (to.getPrivateChat() == 1 && !to.getFriends().containsKey(from)) || to == null) {
			PacketSender.sendMessage(from, "That player is currently offline.");
		} else {
			PacketSender.sendPrivateMessage(to, from.getUsername(), from.getRights(), message);
			PacketSender.sendSentPrivateMessage(from, to.getUsername(), message);
			if (from.getPrivateChat() == 2) {
				from.setPrivateChat((byte)1);
				//set their private chat to 1 (friends) and send packet to update it
			}
		}
	}