CoroutineSession

interface CoroutineSession

Facade of a coroutine session of a single plugin.

Functions

fireSuspendingEvent
Link copied to clipboard
abstract fun fireSuspendingEvent(event: <ERROR CLASS>, eventExecutionType: EventExecutionType): Collection<<ERROR CLASS>>

Fires a suspending event with the given eventExecutionType.

registerSuspendCommandExecutor
Link copied to clipboard
abstract fun registerSuspendCommandExecutor(context: CoroutineContext, pluginCommand: <ERROR CLASS>, commandExecutor: SuspendingCommandExecutor)

Registers a suspend command executor.

registerSuspendListener
Link copied to clipboard
abstract fun registerSuspendListener(listener: <ERROR CLASS>)

Registers a suspend listener.

registerSuspendTabCompleter
Link copied to clipboard
abstract fun registerSuspendTabCompleter(context: CoroutineContext, pluginCommand: <ERROR CLASS>, tabCompleter: SuspendingTabCompleter)

Registers a suspend tab completer.

Properties

dispatcherAsync
Link copied to clipboard
abstract val dispatcherAsync: CoroutineContext

Async Dispatcher.

dispatcherMinecraft
Link copied to clipboard
abstract val dispatcherMinecraft: CoroutineContext

Minecraft Dispatcher.

isManipulatedServerHeartBeatEnabled
Link copied to clipboard
abstract var isManipulatedServerHeartBeatEnabled: Boolean

Manipulates the bukkit server heart beat on startup.

mcCoroutineConfiguration
Link copied to clipboard
abstract val mcCoroutineConfiguration: MCCoroutineConfiguration

MCCoroutine Facade.

scope
Link copied to clipboard
abstract val scope: <ERROR CLASS>

Plugin scope.