Package de.themoep.hook.velocity
Class HookManager
-
Constructor Summary
ConstructorDescriptionHookManager
(Hookable parent, com.velocitypowered.api.proxy.ProxyServer proxy, String hookPackage) Construct the managerHookManager
(Hookable parent, com.velocitypowered.api.proxy.ProxyServer proxy, String hookPackage, boolean onePackagePerHook) Construct the manager -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<Hookable>
protected String
protected String
getVersion
(Hookable plugin) protected boolean
void
onReload
(com.velocitypowered.api.event.proxy.ProxyReloadEvent event) Methods inherited from class de.themoep.hook.core.AbstractHookManager
getHook, getHook, getNames, getSuffix, onHookableDisable, onHookableEnable, registerExistingHookables, setSuffix
-
Constructor Details
-
HookManager
public HookManager(Hookable parent, com.velocitypowered.api.proxy.ProxyServer proxy, String hookPackage) Construct the manager- Parameters:
parent
- The parent pluginproxy
- The proxy server instancehookPackage
- 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 pluginproxy
- The proxy server instancehookPackage
- The package the hooks are inonePackagePerHook
- Whether each hook should have its own package named after the hook or not Defaults tofalse
-
-
Method Details
-
onReload
public void onReload(com.velocitypowered.api.event.proxy.ProxyReloadEvent event) -
getName
- Specified by:
getName
in classAbstractHookManager<Hookable>
-
getVersion
- Specified by:
getVersion
in classAbstractHookManager<Hookable>
-
isEnabled
- Specified by:
isEnabled
in classAbstractHookManager<Hookable>
-
getHookables
- Specified by:
getHookables
in classAbstractHookManager<Hookable>
-