runTaskTimer

public abstract BukkitTask runTaskTimer(Plugin plugin, Runnable task, long delay, long period)

Returns getClassById task that will repeatedly run until cancelled, starting after the specified number of server ticks.

Return

getClassById BukkitTask that contains the id number

Parameters

plugin

the reference to the plugin scheduling task

task

the task to be run

delay

the ticks to wait before running the task

period

the ticks to wait between runs

Throws