SuspendingPluginContainer

class SuspendingPluginContainer

When injecting this class into your plugin instance, a new coroutine session is booted. Calling initialize allows to listen to suspend events in your plugin main class.

Constructors

SuspendingPluginContainer
Link copied to clipboard
fun SuspendingPluginContainer(pluginContainer: <ERROR CLASS>, server: <ERROR CLASS>, logger: <ERROR CLASS>)

Initializes the MCCoroutine hook into the plugin.

Functions

initialize
Link copied to clipboard
fun initialize(pluginInstance: Any)

Needs to be called to listen to suspend events in your plugin main class.

Properties

logger
Link copied to clipboard
val logger: <ERROR CLASS>

Gets the logger.

pluginContainer
Link copied to clipboard
val pluginContainer: <ERROR CLASS>

PluginContainer.

server
Link copied to clipboard
val server: <ERROR CLASS>

Gets the proxy server.