How would I have all pms send to one user? this is my send friend message packet in WPD.class
Code:
else if (packetId == SEND_FRIEND_MESSAGE_PACKET) {
if (!player.hasStarted())
return;
if (player.getMuted() > Utils.currentTimeMillis()) {
player.getPackets().sendGameMessage(
"You're currently muted. Please re-check in 48 hours.");
return;
}
if (IPMute.isMuted(player.getSession().getIP())) {
player.getPackets()
.sendGameMessage(
"Your account has been permanently IP Muted. You may appeal on the forums.");
return;
}
String username = stream.readString();
Player p2 = World.getPlayerByDisplayName(username);
String message1 = Huffman.readEncryptedMessage(150, stream);
if (message1 == null || message1.replaceAll(" ", "").equals(""))
return;
if (message1.startsWith("::") || message1.startsWith(";;")) {
Commands.processCommand(player, message1.replace("::", "")
.replace(";;", ""), false, false);
return;
}
if (p2 == null)
return;
player.getFriendsIgnores().sendMessage(p2,
new ChatMessage(message1));
}
Just basically wanting to see all pms from and to show up in my chat. going to add an option to enable and re-enable it anytime later, (know how to do true false booleans)