Timer?

Discussion in 'Plugin Development' started by Luksor, Mar 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Luksor

    Hi! I can't figure out how to make a timer, I want to start the timer, and then make it do something after a certain amount of time (or server ticks). What should I do?
    Thank you in advance.
     
  2. Offline

    eltorqiro

    There is a scheduler package within bukkit. Basically all you need to do is make a class that implements Runnable and thus provides a run() method, within which you place the code you want to happen. Then use the bukkit scheduler, in your case because you only want to happen once it will be something like scheduleAsyncDelayedTask()
     
Thread Status:
Not open for further replies.

Share This Page