Class HookManager

java.lang.Object
de.themoep.hook.core.AbstractHookManager<org.bukkit.plugin.Plugin>
de.themoep.hook.bukkit.HookManager
All Implemented Interfaces:
org.bukkit.event.Listener

public class HookManager extends AbstractHookManager<org.bukkit.plugin.Plugin> implements org.bukkit.event.Listener
  • Constructor Details

    • HookManager

      public HookManager(org.bukkit.plugin.Plugin parent, String hookPackage)
      Construct the manager
      Parameters:
      parent - The parent plugin
      hookPackage - The package the hooks are in
    • HookManager

      public HookManager(org.bukkit.plugin.Plugin parent, String hookPackage, boolean onePackagePerHook)
      Construct the manager
      Parameters:
      parent - The parent plugin
      hookPackage - The package the hooks are in
      onePackagePerHook - Whether each hook should have its own package named after the hook or not Defaults to false
  • Method Details

    • onPluginEnable

      public void onPluginEnable(org.bukkit.event.server.PluginEnableEvent event)
    • onPluginDisable

      public void onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
    • getName

      protected String getName(org.bukkit.plugin.Plugin plugin)
      Specified by:
      getName in class AbstractHookManager<org.bukkit.plugin.Plugin>
    • getVersion

      protected String getVersion(org.bukkit.plugin.Plugin plugin)
      Specified by:
      getVersion in class AbstractHookManager<org.bukkit.plugin.Plugin>
    • isEnabled

      protected boolean isEnabled(org.bukkit.plugin.Plugin plugin)
      Specified by:
      isEnabled in class AbstractHookManager<org.bukkit.plugin.Plugin>
    • getHookables

      protected Collection<org.bukkit.plugin.Plugin> getHookables()
      Specified by:
      getHookables in class AbstractHookManager<org.bukkit.plugin.Plugin>