Plugin

data class Plugin(val key: ServerKey, val configuration: PluginConfig) : Server

Defines an installable Plugin.

Constructors

Link copied to clipboard
constructor(key: ServerKey, configuration: PluginConfig)

Functions

Link copied to clipboard

Returns the encapsulated plugin if this instance represents a Plugin or null if it is ServerClient.

Link copied to clipboard

Returns the encapsulated server-client if this instance represents a ServerClient or null if it is a Plugin.

Properties

Link copied to clipboard
open override val configuration: PluginConfig

A plugin's configuration.

Link copied to clipboard
open override val key: ServerKey

A unique key that identifies a plugin.