Hello there, I'm working on a new plugin, and after a specifc int is larger than the other int, it should stop the scheduler. http://pastebin.com/g8Ejpq4i But it seems like it doesn't stop correctly. The first time, it does what it should do. If "aantblocks" is 10, it spawns 10 Fallingblocks, but when I try it again, it doesn't work anymore. It just spawns 1 FallingBlock. Anyone can help?
It looks like it's because "done" is a member variable of your listener class, so it's not getting reset to 0 each time.