Spigot Bukkit Self -Canceling Task Timer Contoh Waktu Ulangi
new BukkitRunnable() {
// int repeats = 10; // timer example
@Override
public void run() {
// if (repeats == 0) cancel(); // timer example
// repeats--; // timer example
// your code
}
}.runTaskTimer(plugin, 0L, 20L); // 0 ticks delay, every 20 ticks
Atomiz