ColosseumRunnable

abstract class ColosseumRunnable : Runnable

Represents a task that can be scheduled.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Cancels this task.

Link copied to clipboard

Returns true if this task has been cancelled.

Link copied to clipboard
abstract fun run()
Link copied to clipboard
fun runTask(plugin: Plugin): ScheduledTask

Schedules this in the Bukkit scheduler to run on next tick.

Link copied to clipboard

Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.
Schedules this in the Bukkit scheduler to run asynchronously.

Link copied to clipboard
fun runTaskLater(plugin: Plugin, delay: Long): ScheduledTask

Schedules this to run after the specified number of server ticks.

Link copied to clipboard

Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.
Schedules this to run asynchronously after the specified number of server ticks.

Link copied to clipboard
fun runTaskTimer(plugin: Plugin, delay: Long, period: Long): ScheduledTask

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

Link copied to clipboard
fun runTaskTimerAsynchronously(plugin: Plugin, delay: Long, period: Long): ScheduledTask

Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks.
Schedules this to repeatedly run asynchronously until cancelled, starting after the specified number of server ticks.