- Joined
- Oct 30, 2014
- Messages
- 3,458
- Thread Author
- #1
Code:
@Override
public void onMessageReceived(final MessageEvent m) {
final String sender = m.getSender();
final String message = m.getMessage();
final Chatbox.Message.Type type = m.getType();
final String formattedType = type != null ? type.name().toLowerCase().replaceAll("_", " ") : "unknown";
System.out.println(formattedType);
System.out.println(message);
}
Doesn't print anything, exact same code worked before last RuneScape update. Yes I did add the listener to the dispatcher.
Also tested it with this code:
Code:
@Override
public void onMessageReceived(MessageEvent messageEvent) {
System.out.println("Wow a message");
}
Nothing printed. :/