Sorry my mistake. The counter is being updated in onMessage() shown here:
public void onMessage(Message message) throws java.lang.InterruptedException {
String txt = message.getMessage().toLowerCase();
if (txt.contains("you hammer")) {
barsDone++;
}
}
There is a while statement in my while loop that check for the animation which as print the message that I am looking for.
Fixed the issue. Did away with my while loop. Seems like that was causing the issue
Hello.
I am making a on screen GUI (paint) for my script and currently have all my code in the onPaint() method. The issue is my counter (in onLoop) occurs in a while loop and so the paint does not get updated until the while loop ends. Is there a way to call onPaint() in the while loop? The Client.onPaint() says it is depreciated.
Thanks!