runTaskTimer

open override fun runTaskTimer(runnable: Runnable, delay: Long, period: Long): BukkitScheduledTask

Schedules a repeating task to be executed after the initial delay with the specified period
Folia & Paper: ...on the global region
Bukkit: ...on the main thread

Parameters

runnable

The task to execute

delay

The initial delay, in ticks.

period

The period, in ticks.