Plugin category: Stopwatch Minecraft version: 1.8.9 (1.8 is ok) Suggested name: blank What I want: I want stopwatch that can count 0.01 second (1/100 second). Ideas for commands: No idea Ideas for permissions: No idea (idk about making plugins) When I'd like it by: As soon as possible.
@Sayper You can also try and make your own custom Thread Manager (With repeating and delay functions) and that it disables after you reload the plugin. And then you can create custom timed Timers, But it will cost some time.
It is plugin requests, not plugin development. And then you are still stuck with the server tick rate.
How?. Because if you make a Runnable/Thread on the plugin load which runs a permanent while loop. That you can register Custom Runnables That creates a temporarily Thread for each of them. Than you can trigger them with the given Delay/Interval. And if the server stops/reload you can stop all the Custom Running Threads on the Manager Class.
@DanielTheDev But the sync things are being handled in the server thread. But there is no need to worry about any of this without a way to start or stop it.
Well I guess it doesn't make a lot of sense to answer anymore but @Sayper how should this stopwatch get displayed? You didn't say anything about how this stopwatch should be usable.
Could you not use System.currentTimeMillis() to just get two timestamps and get the difference between them?
You could, but when will you call that? After a command? Chat? Event? All off those are handled with server ticks as far as I know.