Solved Question about BukkitRunnables

Discussion in 'Plugin Development' started by Reflxction, Oct 11, 2017.

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

    Reflxction

    Hello,
    so I've been using BukkitRunnables for most of my projects but I got 1 question. For example, this runnable:
    Code:
        Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
    
            @Override
            public void run() {
                              System.out.println("L");
                }
            }
        },120,120);
    
    So, my question is, when the code actually reaches the runnable code, does the runnable execute the task exactly when the code reaches it then it waits 120 ticks and execute it again, or when the code reaches it, it waits 120 ticks then it executes the tasks?
    Thanks in advance
     
  2. Online

    timtower Administrator Administrator Moderator

    @xTechno_ This setup: it will wait 120 ticks first
     
  3. Offline

    Reflxction

Thread Status:
Not open for further replies.

Share This Page