Class HookManager
java.lang.Object
de.themoep.hook.core.AbstractHookManager<Hookable>
de.themoep.hook.velocity.HookManager
-
Constructor Summary
ConstructorsConstructorDescriptionHookManager(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 Stringprotected StringgetVersion(Hookable plugin) protected booleanvoidonReload(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
-
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
-
getVersion
-
isEnabled
-
getHookables
- Specified by:
getHookablesin classde.themoep.hook.core.AbstractHookManager<Hookable>
-