Well you have 2 options here:
- Write your own breakhandler
- Use osbot break handler and try to set the boolean right before it starts the break, getBot().getTimeUntilNextBreak() returns the time in seconds left before it starts a break
Hope this helped