1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved onMessageReceived does not fire.

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

  1. Eagles13

    Eagles13 The only thing Alpha about me is my bots

    Joined:
    Sep 22, 2014
    Messages:
    618
    Likes Received:
    186
    Code (Text):
    1.     public void onMessageReceived(MessageEvent arg0) {
    2.         System.out.print(arg0.getMessage());
    3.     }
    4.  

    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. Qosmiof2

    Qosmiof2 I've been called a god before.

    Joined:
    Aug 5, 2014
    Messages:
    3,212
    Likes Received:
    924
    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. Qosmiof2

    Qosmiof2 I've been called a god before.

    Joined:
    Aug 5, 2014
    Messages:
    3,212
    Likes Received:
    924
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    Last I heard this was fixed. Correct me if I'm wrong @Cloud.
     
  5. Qosmiof2

    Qosmiof2 I've been called a god before.

    Joined:
    Aug 5, 2014
    Messages:
    3,212
    Likes Received:
    924
    Its not :/
     
  6. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Resolved in beta 51
     
    Qosmiof2 likes this.

Share This Page

Loading...