Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved I think ChatboxListener is broken

Primate
Joined
Oct 30, 2014
Messages
3,458
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. :/
 
Top