Class HookConstants
java.lang.Object
com.github.darksoulq.abyssallib.server.util.HookConstants
A utility class for managing and checking the status of external plugin integrations.
This class scans the server's plugin manager to determine which supported
plugins are currently enabled, allowing for safe cross-plugin functionality
without causing NoClassDefFoundErrors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAn enumeration of supported external plugins for which the library provides specialized hooks. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanChecks if a specific external plugin hook is currently active.static voidload()Initializes the hook states by checking the BukkitPluginManager.
-
Constructor Details
-
HookConstants
public HookConstants()
-
-
Method Details
-
load
public static void load()Initializes the hook states by checking the BukkitPluginManager.This method should be called during the plugin's enable phase. It logs the status of each discovered hook to the server console.
-
isEnabled
Checks if a specific external plugin hook is currently active.- Parameters:
pl- TheHookConstants.Pluginto check.- Returns:
trueif the plugin is installed and enabled on the server.
-