Perform Task at given Time?

Discussion in 'Plugin Development' started by FlawlezZ, Nov 4, 2013.

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

    FlawlezZ

    Hey, I want to perform a task at a given time and my question is, how I do that.

    This is what I currently have. I want to check every 60 seconds if the time is for example 10:00 and then do something else.

    Code:java
    1. public void storeTimer() {
    2. Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
    3. @Override
    4. public void run() {
    5.  
    6. }
    7. }, 0L, 60*20L);
    8. }
     
  2. Offline

    DS1995

    FlawlezZ likes this.
Thread Status:
Not open for further replies.

Share This Page