I am in the midst of writing a plugin that has a counter value and a threshold. I need to increment the value every x seconds or ticks until it reaches that threshold. I was wondering what the best way to implement this repeat increment would be? I was going to go with a Timer Task schedule, but I'm not sure if that runs on its own thread continually and it depends on the user time, so could get inaccurate. I have heard about org.bukkit.Server.getTime(), but how do I repeatedly check that value after the interval? Obviously I don't want while loops etc. because that would bottleneck the server... Also, my plugin requires storing a value per-player every time this task is called. I'm not sure of the best way to handle that. I could write the values to a file every time but that would also result in slowdowns due to file read speeds. What is the best way to do this? Thanks in advance.