runnable

Discussion in 'Plugin Development' started by Pizza371, Oct 22, 2013.

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

    Pizza371

    Ok, im confus :[ not sure why but this isn't working
    Code:java
    1. Bukkit.getScheduler().runTaskTimerAsynchronously(this, new Runnable() {
    2. @Override
    3. public void run() {
    4. //code
    5. }
    6. }
    7. }, 10L, 3600L);

    The code runs, just it only runs on RELOAD, then stops all together, but I have it set to repeat every 10 ticks lasting an hour, what is going wrong?
     
  2. Offline

    MrSnare

    you have it set to run once every 3 minutes (3600 ticks is 3 minutes) with the first run happening 10 ticks after the code is executed
     
    Pizza371 likes this.
  3. Offline

    Pizza371

    MrSnare oh, haha, thank you! I thought 3600L was the last time it would run, like it would cancel after that, now i can go fix my other plugins before I test them too ;d.
     
    MrSnare likes this.
Thread Status:
Not open for further replies.

Share This Page