Okay, I spoke too soon, it started happening again, I removed everything from my script but the following... All I am trying to do is stop my account from logging out. Ugh, have written tons of scripts that are infinetly more complex, why does this one have so many issues .. seems to take longer before it runs into issues though. Before I noticed it after a few minutes, now it runs for about 30 minutes before I start noticing the lag, maybe a hour until crash happens.
@Override
public int onLoop() {
if(players.myPlayer().isAnimating()){
getKeyboard().pressKey(8);
getKeyboard().releaseKey(8);
}
return ThreadLocalRandom.current().nextInt(60000, 240000);
}