Scheduler
Wrapper for the Bukkit scheduler.
This class provides a simplified API for scheduling tasks on the Bukkit main thread or asynchronously. It also automatically tracks tasks for lifecycle management.
Functions
Link copied to clipboard
Runs the task asynchronously.
Link copied to clipboard
fun launch(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> Unit): TaskHandle
Launches a coroutine on the Bukkit main thread.
Link copied to clipboard
fun launchAsync(context: CoroutineContext = EmptyCoroutineContext, block: suspend CoroutineScope.() -> Unit): TaskHandle
Launches a coroutine asynchronously.
Link copied to clipboard
Runs the task on the next tick (synchronously on the main thread).
Link copied to clipboard