1Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
2 public void run() {
3
4 }
5}, 20, 20);
1// 20L = 1 Second
2Bukkit.getScheduler().runTaskLater(main, new Runnable() {
3 public void run() {
4 System.out.println("Plugin has been enabled for 5 seconds!");
5 }
6}, 100L);
1Bukkit.getScheduler().scheduleSyncRepeatingTask(instance, new Runnable() {
2 @Override
3 public void run() {
4 //Your Code Here
5 }
6}, 0L, 20L);