1Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
2 @Override
3 public void run() {
4 Bukkit.broadcastMessage("This message is shown after one second");
5 }
6}, 20L); //20 Tick (1 Second) delay before run() is called
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);