set Suspending Executor
fun <ERROR CLASS>.setSuspendingExecutor(suspendingCommandExecutor: SuspendingCommandExecutor)
Content copied to clipboard
Registers a command executor with suspending function. Does exactly the same as PluginCommand.setExecutor.
fun <ERROR CLASS>.setSuspendingExecutor(context: CoroutineContext, suspendingCommandExecutor: SuspendingCommandExecutor)
Content copied to clipboard
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.