Spigot Bukkit Self Storning Task Timer Beispiel Wiederholungszeiten

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