Package net.storm.api.plugins
Interface IPlugins
public interface IPlugins
Simplified interface for basic plugin control operations.
IPlugins provides a streamlined API for checking plugin status and
starting/stopping plugins. This interface is useful for quick plugin
management operations without the full functionality of PluginManager.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if a plugin is currently enabled.booleanstartPlugin(Plugin plugin) Starts a plugin.booleanstopPlugin(Plugin plugin) Stops a running plugin.
-
Method Details
-
isEnabled
Checks if a plugin is currently enabled.- Parameters:
plugin- the plugin to check- Returns:
- true if the plugin is enabled, false otherwise
-
stopPlugin
Stops a running plugin.- Parameters:
plugin- the plugin to stop- Returns:
- true if the plugin was successfully stopped, false otherwise
-
startPlugin
Starts a plugin.- Parameters:
plugin- the plugin to start- Returns:
- true if the plugin was successfully started, false otherwise
-