Class HookManager

java.lang.Object
de.themoep.hook.core.AbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
de.themoep.hook.bungee.HookManager
All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener

public class HookManager extends AbstractHookManager<net.md_5.bungee.api.plugin.Plugin> implements net.md_5.bungee.api.plugin.Listener
  • Constructor Details

    • HookManager

      public HookManager(net.md_5.bungee.api.plugin.Plugin parent, String hookPackage)
      Construct the manager
      Parameters:
      parent - The parent plugin
      hookPackage - The package the hooks are in
    • HookManager

      public HookManager(net.md_5.bungee.api.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

    • onReload

      public void onReload(net.md_5.bungee.api.event.ProxyReloadEvent event)
    • getName

      protected String getName(net.md_5.bungee.api.plugin.Plugin plugin)
      Specified by:
      getName in class AbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
    • getVersion

      protected String getVersion(net.md_5.bungee.api.plugin.Plugin plugin)
      Specified by:
      getVersion in class AbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
    • isEnabled

      protected boolean isEnabled(net.md_5.bungee.api.plugin.Plugin plugin)
      Specified by:
      isEnabled in class AbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
    • getHookables

      protected Collection<net.md_5.bungee.api.plugin.Plugin> getHookables()
      Specified by:
      getHookables in class AbstractHookManager<net.md_5.bungee.api.plugin.Plugin>