Resolved I think ChatboxListener is broken

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

  1. 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. I'll test soon.
     
  4. I can confirm this myself.
     
    Defeat3d likes this.
  5. Fixed.
     
    Defeat3d likes this.

Share This Page

Loading...