Added enablePlugin and disablePlugin, triggers events
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -34,4 +34,22 @@ public interface PluginLoader {
|
||||
* @param event Event details
|
||||
*/
|
||||
public void callEvent(RegisteredListener registration, Event event);
|
||||
|
||||
/**
|
||||
* Enables the specified plugin
|
||||
*
|
||||
* Attempting to enable a plugin that is already enabled will have no effect
|
||||
*
|
||||
* @param plugin Plugin to enable
|
||||
*/
|
||||
public void enablePlugin(Plugin plugin);
|
||||
|
||||
/**
|
||||
* Disables the specified plugin
|
||||
*
|
||||
* Attempting to disable a plugin that is not enabled will have no effect
|
||||
*
|
||||
* @param plugin Plugin to disable
|
||||
*/
|
||||
public void disablePlugin(Plugin plugin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user