Minecraft Coding BukkitRunnable code example
Example: bukkit scheduled task
Bukkit.getScheduler().scheduleSyncRepeatingTask(instance, new Runnable() {
@Override
public void run() {
//Your Code Here
}
}, 0L, 20L);
Bukkit.getScheduler().scheduleSyncRepeatingTask(instance, new Runnable() {
@Override
public void run() {
//Your Code Here
}
}, 0L, 20L);