Resolved I think ChatboxListener is broken

Discussion in 'Client & Site Support' started by Defeat3d, Apr 21, 2015.

  1. Defeat3d

    Defeat3d Prime Celestial

    Joined:
    Oct 30, 2014
    Messages:
    1,411
    Likes Received:
    612
    Code (Text):
    1.     @Override
    2.     public void onMessageReceived(final MessageEvent m) {
    3.         final String sender = m.getSender();
    4.         final String message = m.getMessage();
    5.         final Chatbox.Message.Type type = m.getType();
    6.         final String formattedType = type != null ? type.name().toLowerCase().replaceAll("_", " ") : "unknown";
    7.         System.out.println(formattedType);
    8.         System.out.println(message);
    9. }
    Doesn't print anything, exact same code worked before last RuneScape update. Yes I did add the listener to the dispatcher.
    --- Double Post Merged, Apr 21, 2015, Original Post Date: Apr 21, 2015 ---
    Also tested it with this code:
    Code (Text):
    1.     @Override
    2.     public void onMessageReceived(MessageEvent messageEvent) {
    3.         System.out.println("Wow a message");
    4.     }
    Nothing printed. :/

     
  2. Best Answer:
    Post #4 by Cloud, Apr 21, 2015
  3. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,585
    Likes Received:
    931
    I'll test soon.
     
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,561
    Likes Received:
    1,087
    I can confirm this myself.
     
    Defeat3d likes this.
  5. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,585
    Likes Received:
    931
    Fixed.
     
    Defeat3d likes this.

Share This Page

Loading...