setSuspendingExecutor

fun <ERROR CLASS>.setSuspendingExecutor(suspendingCommandExecutor: SuspendingCommandExecutor)

Registers a command executor with suspending function. Does exactly the same as PluginCommand.setExecutor.

fun <ERROR CLASS>.setSuspendingExecutor(context: CoroutineContext, suspendingCommandExecutor: SuspendingCommandExecutor)

Registers a command executor with suspending function. Does exactly the same as PluginCommand.setExecutor.

Parameters

context

The coroutine context to start. Should almost be always be Plugin.minecraftDispatcher.