Class HookManager

java.lang.Object
de.themoep.hook.core.AbstractHookManager<Hookable>
de.themoep.hook.velocity.HookManager

public class HookManager extends de.themoep.hook.core.AbstractHookManager<Hookable>
  • Constructor Details

    • HookManager

      public HookManager(Hookable parent, com.velocitypowered.api.proxy.ProxyServer proxy, String hookPackage)
      Construct the manager
      Parameters:
      parent - The parent plugin
      proxy - The proxy server instance
      hookPackage - The package the hooks are in
    • HookManager

      public HookManager(Hookable parent, com.velocitypowered.api.proxy.ProxyServer proxy, String hookPackage, boolean onePackagePerHook)
      Construct the manager
      Parameters:
      parent - The parent plugin
      proxy - The proxy server instance
      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(com.velocitypowered.api.event.proxy.ProxyReloadEvent event)
    • getName

      protected String getName(Hookable plugin)
      Specified by:
      getName in class de.themoep.hook.core.AbstractHookManager<Hookable>
    • getVersion

      protected String getVersion(Hookable plugin)
      Specified by:
      getVersion in class de.themoep.hook.core.AbstractHookManager<Hookable>
    • isEnabled

      protected boolean isEnabled(Hookable plugin)
      Specified by:
      isEnabled in class de.themoep.hook.core.AbstractHookManager<Hookable>
    • getHookables

      protected Collection<Hookable> getHookables()
      Specified by:
      getHookables in class de.themoep.hook.core.AbstractHookManager<Hookable>