SuspendingJavaPlugin

open class SuspendingJavaPlugin : SuspendingPlugin

Extension to the JavaPlugin for suspendable lifecycle functions.

Constructors

SuspendingJavaPlugin
Link copied to clipboard
fun SuspendingJavaPlugin()

Functions

onDisable
Link copied to clipboard
open fun onDisable()

Called when this plugin is disabled

onDisableAsync
Link copied to clipboard
open suspend override fun onDisableAsync()

Called when this plugin is disabled.

onEnable
Link copied to clipboard
open fun onEnable()

Called when this plugin is enabled

onEnableAsync
Link copied to clipboard
open suspend override fun onEnableAsync()

Called when this plugin is enabled

onLoad
Link copied to clipboard
open fun onLoad()

Called after a plugin is loaded but before it has been enabled.

onLoadAsync
Link copied to clipboard
open suspend override fun onLoadAsync()

Called after a plugin is loaded but before it has been enabled.