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:
    617
    Likes Received:
    180
    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 Qosidog3 - I write bots not tragedies.

    Joined:
    Aug 5, 2014
    Messages:
    2,297
    Likes Received:
    671
    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 Qosidog3 - I write bots not tragedies.

    Joined:
    Aug 5, 2014
    Messages:
    2,297
    Likes Received:
    671
  4. Arbiter

    Arbiter Mod Automation

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

    Qosmiof2 Qosidog3 - I write bots not tragedies.

    Joined:
    Aug 5, 2014
    Messages:
    2,297
    Likes Received:
    671
    Its not :/
     
  6. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,557
    Likes Received:
    922
    Resolved in beta 51
     
    Qosmiof2 likes this.

Share This Page

Loading...