scope

val Plugin.scope: CoroutineScope

Gets or creates a CoroutineScope for this plugin with a SupervisorJob and Bukkit dispatcher.

The scope is tied to the plugin's lifecycle and uses SupervisorJob to prevent child coroutine failures from cancelling the entire scope. All coroutines run on the Bukkit main thread.

Return

A CoroutineScope instance specific to this plugin.

Samples