Package-level declarations

Types

Link copied to clipboard
class TaskSequenceBuilder(val plugin: Plugin, val player: Player? = null)

TaskSequenceBuilder provides a DSL for creating a sequence of tasks with delays.

Link copied to clipboard
annotation class TaskSequenceDsl

Functions

Link copied to clipboard
fun Scheduler.sequence(context: CoroutineContext = EmptyCoroutineContext, block: suspend TaskSequenceBuilder.() -> Unit)

Starts a task sequence using this Scheduler.

fun Plugin.sequence(context: CoroutineContext = EmptyCoroutineContext, block: suspend TaskSequenceBuilder.() -> Unit)

Starts a task sequence.

fun Player.sequence(plugin: Plugin, context: CoroutineContext = EmptyCoroutineContext, block: suspend TaskSequenceBuilder.() -> Unit)

Extension for Player to start a task sequence. The sequence will be tracked for this player.