Resolved onMessageReceived does not fire.

Discussion in 'Client & Site Support' started by Eagles13, Oct 8, 2014.

  1. Code (Text):
    1.     public void onMessageReceived(MessageEvent arg0) {
    2.         System.out.print(arg0.getMessage());
    3.     }

    Before you ask, yes, I am using getEventDispatcher().addListener(this);

    Frequently doesn't print anything out to the console. I'd post a screenshot, but it would just consist of a chatbox with a load of messages in it and nothing in the console.

    @Qosmiof2 can also corroborate this.
  2. I agree. There is a problem with messageListener.

    Here is what i use. But it only prints on specific texts. Example: When you level up, it will print it. But when its a normal chat message, it wont detect it.

    Code (Text):
    1. @Override
    2.     public void onMessageReceived(MessageEvent message) {
    3.         String msg = message.getMessage();
    4.         System.out.println(msg);
    5.         if (message.getSender().equals("") && msg.contains("You successfully")) {
    6.             cooked++;
    7.         }
    8.     }
  3. Last I heard this was fixed. Correct me if I'm wrong @Cloud.
  4. Its not :/
  5. Resolved in beta 51
    Qosmiof2 likes this.

Share This Page