Class DependencyEnableListener
java.lang.Object
dev.cwhead.GravesX.module.listener.DependencyEnableListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Listens for plugin enable events and asks the
ModuleManager
to
retry enabling modules that were waiting on dependencies.-
Constructor Summary
ConstructorsConstructorDescriptionDependencyEnableListener
(ModuleManager manager) Creates a listener tied to a module manager. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onPluginEnable
(org.bukkit.event.server.PluginEnableEvent e) Handles a plugin enable event and retries enabling pending modules.
-
Constructor Details
-
DependencyEnableListener
Creates a listener tied to a module manager.- Parameters:
manager
- Module manager to notify when plugins are enabled.
-
-
Method Details
-
onPluginEnable
public void onPluginEnable(org.bukkit.event.server.PluginEnableEvent e) Handles a plugin enable event and retries enabling pending modules.- Parameters:
e
- The plugin enable event.
-