Package de.themoep.hook.bungee
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 Summary
ConstructorDescriptionHookManager
(net.md_5.bungee.api.plugin.Plugin parent, String hookPackage) Construct the managerHookManager
(net.md_5.bungee.api.plugin.Plugin parent, String hookPackage, boolean onePackagePerHook) Construct the manager -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<net.md_5.bungee.api.plugin.Plugin>
protected String
getName
(net.md_5.bungee.api.plugin.Plugin plugin) protected String
getVersion
(net.md_5.bungee.api.plugin.Plugin plugin) protected boolean
isEnabled
(net.md_5.bungee.api.plugin.Plugin plugin) void
onReload
(net.md_5.bungee.api.event.ProxyReloadEvent event) Methods inherited from class de.themoep.hook.core.AbstractHookManager
getHook, getHook, getNames, getSuffix, onHookableDisable, onHookableEnable, registerExistingHookables, setSuffix
-
Constructor Details
-
HookManager
Construct the manager- Parameters:
parent
- The parent pluginhookPackage
- 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 pluginhookPackage
- 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(net.md_5.bungee.api.event.ProxyReloadEvent event) -
getName
- Specified by:
getName
in classAbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
-
getVersion
- Specified by:
getVersion
in classAbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
-
isEnabled
protected boolean isEnabled(net.md_5.bungee.api.plugin.Plugin plugin) - Specified by:
isEnabled
in classAbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
-
getHookables
- Specified by:
getHookables
in classAbstractHookManager<net.md_5.bungee.api.plugin.Plugin>
-