Plugins
The plugins { } builder allows you to configure various aspects of the plugin system.
For more information on creating and using plugin, see [the plugins page].
Builders
Register a callback that constructs and returns an alternative implementation of the PluginManager
type, if needed.
Configured list of plugin paths, to be passed into the plugin manager's constructor.
Whether the plugin system is enabled, to be passed into the plugin manager's constructor.
Functions
Prevent a plugin from loading on startup.
This won't prevent an extension from re-enabling the plugin later.
Plugin ID to disable.
Add a path that should be searched for plugins.
By default, ./plugins will be searched.
Path to search for plugins.
Properties
Whether the plugin system should be enabled.
Setting this to false will still create a plugin manager, to avoid breaking anything that depends on it.
It won't load any plugins on startup, but extensions can still do so via its API.
The following properties are usually set using the functions and builders above. However, for advanced use-cases, you can mutate them yourself.
List containing disabled plugin IDs. Normally mutated via the disable(id) function.
Plugins with these IDs won't be loaded on startup, but this won't prevent an extension from re-enabling the plugin later.
List of paths to search for plugins. Usually mutated via the pluginPath(path) function.