PluginManager

interface PluginManager

The plugin manager.

Functions

Link copied to clipboard
abstract fun addToClasspath(plugin: Any, path: Path)

Add the specified path to the server's classpath using the given plugin's class loader.

Link copied to clipboard
abstract fun fromInstance(instance: Any): PluginContainer?

Get the plugin container for the specified plugin instance, or null if there isn't one.

Link copied to clipboard
abstract fun getPlugin(id: String): PluginContainer?

Get a plugin's container by its id, or null if there isn't a plugin loaded with the specified id.

Link copied to clipboard
abstract fun isLoaded(id: String): Boolean

Check if a plugin with the specified id is currently loaded.

Properties

Link copied to clipboard

The list of currently loaded plugins.