Package-level declarations

Types

Link copied to clipboard
class BukkitDispatcher(plugin: Plugin) : CoroutineDispatcher

Custom dispatcher that runs tasks on the Bukkit main thread.

Properties

Link copied to clipboard
var Plugin.coroutineExceptionHandler: CoroutineExceptionHandler

Gets or sets the CoroutineExceptionHandler for this Plugin.

Link copied to clipboard

Gets the BukkitDispatcher for this Plugin.

Link copied to clipboard
val Plugin.scope: CoroutineScope

Gets a CoroutineScope bound to this Plugin's lifecycle on the main thread.

Functions

Link copied to clipboard
suspend fun delayTicks(ticks: Ticks)
suspend fun delayTicks(plugin: Plugin, ticks: Ticks)

Suspends the coroutine for the given number of ticks.