Jump to content

last chatbox message


Recommended Posts

Posted
17 minutes ago, Team Cape said:

Would recommend using onMessage() getMessages() is bugged. How are you trying to print it?

 

Also, my mistake - it should've been getMessages().get(0) not the other way around :D

 

 

 

16 minutes ago, dreameo said:

lol my bad, kinda rushed it but, you want this:


getChatbox().getMessages(Chatbox.MessageType.ALL).get(0);

change type of message if you don't want all.

the only reason you're getting null is because of poor referencing 

 

I tried 

onMessage(Chatbox.MessageType.ALL).get(0)

and 

getChatbox().getMessages(Chatbox.MessageType.ALL).get(0);

 

I get an error from eclipse.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...