yfoo Posted June 13, 2018 Posted June 13, 2018 If breaks are enabled how does the client notify my script that a break is imminent?
Fruity Posted June 13, 2018 Posted June 13, 2018 you can get minutes until break using: public int getTimeTillBreak() { RandomExecutor randomExecutor = getBot().getRandomExecutor(); return randomExecutor != null ? randomExecutor.getTimeUntilBreak() : -1; } 3
yfoo Posted June 15, 2018 Author Posted June 15, 2018 On 6/13/2018 at 8:55 AM, Fruity said: you can get minutes until break using: public int getTimeTillBreak() { RandomExecutor randomExecutor = getBot().getRandomExecutor(); return randomExecutor != null ? randomExecutor.getTimeUntilBreak() : -1; } Easy to understand. Thanks.