BukkitTaskHandle

class BukkitTaskHandle(plugin: Plugin, task: BukkitTask) : TaskHandle

A TaskHandle implementation for Bukkit tasks.

Constructors

Link copied to clipboard
constructor(plugin: Plugin, task: BukkitTask)

Properties

Link copied to clipboard
open override val isCancelled: Boolean

Checks if the underlying Bukkit task is cancelled.

Functions

Link copied to clipboard
open override fun cancel()

Cancels the underlying Bukkit task.

Link copied to clipboard
open override fun scheduler(): Scheduler

Returns the scheduler for the associated plugin.

Link copied to clipboard
infix fun TaskHandle.then(delay: Ticks): ThenScope

Chains a task to be executed after the current task with the specified delay.