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 TypeMethodDescriptionvoid
init()
static boolean
Checks whether bungee is presentstatic boolean
Checks whether Lib's Disguises is activestatic boolean
Checks whether Mimic is present.static boolean
static boolean
Checks whether NoCheatPlus is active on the serverstatic boolean
static boolean
static boolean
static boolean
Checks if vault economy is active on the serverstatic boolean
Checks if vault permissions is active on the serverstatic boolean
void
onPluginDisable
(org.bukkit.event.server.PluginDisableEvent event) void
onPluginEnable
(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:
init
in classFabledListener
-
onPluginEnable
public void onPluginEnable(org.bukkit.event.server.PluginEnableEvent event) -
onPluginDisable
public void onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
-