Package studio.magemonkey.fabled.hook
Class PluginChecker
java.lang.Object
studio.magemonkey.fabled.listener.FabledListener
studio.magemonkey.fabled.hook.PluginChecker
- All Implemented Interfaces:
org.bukkit.event.Listener
Handler for checking whether hooked plugins are present
and active before using related code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()static booleanChecks whether bungee is presentstatic booleanChecks whether Lib's Disguises is activestatic booleanChecks whether Mimic is present.static booleanstatic booleanChecks whether NoCheatPlus is active on the serverstatic booleanstatic booleanstatic booleanstatic booleanChecks if vault economy is active on the serverstatic booleanChecks if vault permissions is active on the serverstatic booleanvoidonPluginDisable(org.bukkit.event.server.PluginDisableEvent event) voidonPluginEnable(org.bukkit.event.server.PluginEnableEvent event) Methods inherited from class studio.magemonkey.fabled.listener.FabledListener
cleanup
-
Constructor Details
-
PluginChecker
public PluginChecker()
-
-
Method Details
-
isVaultPermissionsActive
public static boolean isVaultPermissionsActive()Checks if vault permissions is active on the server- Returns:
- true if active with permissions plugin, false otherwise
-
isVaultEconomyActive
public static boolean isVaultEconomyActive()Checks if vault economy is active on the server- Returns:
- true if active with economy plugin, false otherwise
-
isDisguiseActive
public static boolean isDisguiseActive()Checks whether Lib's Disguises is active- Returns:
- true if active
-
isNoCheatActive
public static boolean isNoCheatActive()Checks whether NoCheatPlus is active on the server- Returns:
- true if active, false otherwise
-
isPlaceholderAPIActive
public static boolean isPlaceholderAPIActive() -
isBungeeActive
public static boolean isBungeeActive()Checks whether bungee is present- Returns:
- true if present, false otherwise
-
isMythicMobsActive
public static boolean isMythicMobsActive() -
isWorldGuardActive
public static boolean isWorldGuardActive() -
isProtocolLibActive
public static boolean isProtocolLibActive() -
isPartiesActive
public static boolean isPartiesActive() -
isMimicActive
public static boolean isMimicActive()Checks whether Mimic is present. -
init
public void init()- Overrides:
initin classFabledListener
-
onPluginEnable
public void onPluginEnable(org.bukkit.event.server.PluginEnableEvent event) -
onPluginDisable
public void onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
-