runTaskTimer

fun runTaskTimer(plugin: Plugin, delay: Long, period: Long): ScheduledTask

Schedules this to repeatedly run until cancelled, starting after the specified number of server ticks.

Return

{@link MyScheduledTask}

Parameters

plugin

the reference to the plugin scheduling task

delay

the ticks to wait before running the task

period

the ticks to wait between runs

Throws

if plugin is null

if this was already scheduled