runTaskTimer

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

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.


open override fun runTaskTimer(location: Location, runnable: Runnable, delay: Long, period: Long): FoliaScheduledTask

Folia & Paper: Schedules a repeating task to be executed on the region which owns the location after the initial delay with the specified period
Bukkit: same as {@link #runTaskTimer(Runnable, long, long)}

Parameters

location

The location which the region executing should own

runnable

The task to execute

delay

The initial delay, in ticks.

period

The period, in ticks.


open override fun runTaskTimer(entity: Entity, runnable: Runnable, delay: Long, period: Long): FoliaScheduledTask

Folia & Paper: Schedules a repeating task to be executed on the region which owns the location of given entity after the initial delay with the specified period
Bukkit: same as {@link #runTaskTimer(Runnable, long, long)}

Parameters

entity

The entity whose location the region executing should own

runnable

The task to execute

delay

The initial delay, in ticks.

period

The period, in ticks.