MY Private Messaging wont work, here the code:
Code:
case 126: //send pm
long recepitant = stream.readLong2();
int messageSize = stream.buffer.length - 8;
byte[] message = stream.readBytes(messageSize);
ActionSender.sendPrivateMessage(player, recepitant, 2, message, messageSize);
break;
In ActionSender.java
Code:
public static void sendPrivateMessage(Player player, long reciever, int rights, byte[] message, int size) {
StreamBuffer buffer = new StreamBuffer(196);
buffer.writeLong(reciever);
buffer.writeInt(player.getContactsManager().getLastPrivateMessageId());
buffer.writeByte(rights);
buffer.writeBytes(message, size);
player.getSession().write(buffer);
}
and the error when i send a pm
http://pastebin.com/raw.php?i=LFXjgv0c
If you need anything else, leave a reply below