Interface PluginProviderContext
Represents the context provided to a
PluginBootstrap
during both the bootstrapping and plugin
instanciation logic.
A boostrap context may be used to access data or logic usually provided to Plugin
instances
like the plugin's configuration or logger during the plugins bootstrap.-
Method Summary
Modifier and TypeMethodDescriptionProvides the plugin's configuration.Provides the path to the data directory of the plugin.@NotNull net.kyori.adventure.text.logger.slf4j.ComponentLogger
Provides the logger used for this plugin.Provides the path to the originating source of the plugin, such as the plugin's JAR file.
-
Method Details
-
getConfiguration
Provides the plugin's configuration.- Returns:
- the plugin's configuration
-
getDataDirectory
Provides the path to the data directory of the plugin.- Returns:
- the previously described path
-
getLogger
Provides the logger used for this plugin.- Returns:
- the logger instance
-
getPluginSource
Provides the path to the originating source of the plugin, such as the plugin's JAR file.- Returns:
- the previously described path
-