Class DependencyEnableListener

java.lang.Object
dev.cwhead.GravesX.module.listener.DependencyEnableListener
All Implemented Interfaces:
org.bukkit.event.Listener

public final class DependencyEnableListener extends Object implements org.bukkit.event.Listener
Listens for plugin enable events and asks the ModuleManager to retry enabling modules that were waiting on dependencies.
  • Constructor Details

    • DependencyEnableListener

      public DependencyEnableListener(ModuleManager manager)
      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.