Package com.ranull.graves.manager
Class IntegrationManager
java.lang.Object
com.ranull.graves.manager.IntegrationManager
The
IntegrationManager class is responsible for managing the integration of various external plugins with the Graves plugin.
This class handles loading, unloading, and checking the availability of these integrations, allowing the Graves plugin to interact with other plugins.-
Constructor Summary
ConstructorsConstructorDescriptionIntegrationManager(Graves plugin) Initializes a new instance of theIntegrationManagerclass. -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks for known plugin managers that could cause compatibility issues.Returns the instance of the ChestSort integration, if it is loaded.Returns the instance of the CitizensNPC integration, if it is loaded.Deprecated.Unmaintained greedware plugin.Returns the instance of the FancyNPCs integration, if it is loaded.Returns the instance of Floodgate integration, if it is loaded.Deprecated.Plugin no longer exists externally Returns the instance of the FurnitureEngine integration, if it is loaded.Returns the instance of the FurnitureLib integration, if it is loaded.Returns the instance of the ItemsAdder integration, if it is loaded.Returns the instance of the LuckPermsHandler, if it is loaded.Returns the instance of the MineDown integration, if it is loaded.Returns the instance of the MiniMessage integration, if it is loaded.Returns the instance of the MultiPaper integration, if it is loaded.getNexo()Returns the instance of the Nexo integration, if it is loaded.Returns the instance of the NoteBlockAPI integration, if it is loaded.Deprecated.Use Nexo instead.Returns the instance of the PlayerNPC integration, if it is loaded.Returns the instance of the ProtectionLib integration, if it is loaded.Returns the instance of the ProtocolLib integration, if it is loaded.ch.njol.skript.SkriptAddonReturns the SkriptAddon instance if Skript integration is loaded.getVault()Returns the instance of the Vault integration, if it is loaded.booleanChecks if ChestSort integration is loaded.booleanChecks if CitizensNPC integration is loaded.booleanDeprecated.Unmaintained greedware plugin.booleanChecks if FancyNpcs is loaded.booleanReturns whether you are using floodgate.booleanDeprecated.Plugin no longer exists externally Checks if FurnitureEngine integration is loaded.booleanChecks if FurnitureLib integration is loaded.booleanChecks if ItemsAdder integration is loaded.booleanChecks if LuckPermsHandler is loaded.booleanChecks if MineDown integration is loaded.booleanChecks if MiniMessage integration is loaded.booleanChecks if MultiPaper integration is loaded.booleanhasNexo()Checks if Nexo integration is loaded.booleanChecks if NoteBlockAPI is loaded.booleanDeprecated.Use Nexo instead.booleanChecks if PlaceholderAPI integration is loaded.booleanChecks if PlayerNPC integration is loaded.booleanChecks if ProtectionLib integration is loaded.booleanChecks if ProtocolLib integration is loaded.booleanChecks if Skript integration is loaded.booleanhasVault()Checks if Vault integration is loaded.booleanChecks if Vault permissions provider is available.voidload()Loads all integrations for the Graves plugin.voidLoads Skript integration without reloading other integrations.voidreload()Reloads all integrations by first unloading them and then loading them again.voidunload()Unloads all integrations associated with the Graves plugin.voidUnloads Skript integration without unloading other integrations.
-
Constructor Details
-
IntegrationManager
Initializes a new instance of theIntegrationManagerclass.- Parameters:
plugin- The plugin instance of Graves.
-
-
Method Details
-
reload
public void reload()Reloads all integrations by first unloading them and then loading them again. -
load
public void load()Loads all integrations for the Graves plugin. -
loadNoReload
public void loadNoReload()Loads Skript integration without reloading other integrations. -
unloadNoReload
public void unloadNoReload()Unloads Skript integration without unloading other integrations. -
unload
public void unload()Unloads all integrations associated with the Graves plugin. -
getMultiPaper
Returns the instance of the MultiPaper integration, if it is loaded.- Returns:
- The
MultiPaperintegration instance, or null if not loaded.
-
getVault
Returns the instance of the Vault integration, if it is loaded.- Returns:
- The
Vaultintegration instance, or null if not loaded.
-
getProtocolLib
Returns the instance of the ProtocolLib integration, if it is loaded.- Returns:
- The
ProtocolLibintegration instance, or null if not loaded.
-
getCoreProtect
Deprecated.Unmaintained greedware plugin. Returns the instance of the CoreProtect integration, if it is loaded.- Returns:
- The
CoreProtectintegration instance, or null if not loaded.
-
getFurnitureLib
Returns the instance of the FurnitureLib integration, if it is loaded.- Returns:
- The
FurnitureLibintegration instance, or null if not loaded.
-
getFurnitureEngine
Deprecated.Plugin no longer exists externally Returns the instance of the FurnitureEngine integration, if it is loaded.- Returns:
- The
FurnitureEngineintegration instance, or null if not loaded.
-
getProtectionLib
Returns the instance of the ProtectionLib integration, if it is loaded.- Returns:
- The
ProtectionLibintegration instance, or null if not loaded.
-
getItemsAdder
Returns the instance of the ItemsAdder integration, if it is loaded.- Returns:
- The
ItemsAdderintegration instance, or null if not loaded.
-
getOraxen
Deprecated.Use Nexo instead. Unmaintained and will be for the forseeable future. Returns the instance of the Oraxen integration, if it is loaded.- Returns:
- The
Oraxenintegration instance, or null if not loaded.
-
getNexo
Returns the instance of the Nexo integration, if it is loaded.- Returns:
- The
Nexointegration instance, or null if not loaded.
-
getMiniMessage
Returns the instance of the MiniMessage integration, if it is loaded.- Returns:
- The
MiniMessageintegration instance, or null if not loaded.
-
getMineDown
Returns the instance of the MineDown integration, if it is loaded.- Returns:
- The
MineDownintegration instance, or null if not loaded.
-
getChestSort
Returns the instance of the ChestSort integration, if it is loaded.- Returns:
- The
ChestSortintegration instance, or null if not loaded.
-
getPlayerNPC
Returns the instance of the PlayerNPC integration, if it is loaded.- Returns:
- The
PlayerNPCintegration instance, or null if not loaded.
-
getNoteBlockAPI
Returns the instance of the NoteBlockAPI integration, if it is loaded.- Returns:
- The
NoteBlockAPIintegration instance, or null if not loaded.
-
getSkript
public ch.njol.skript.SkriptAddon getSkript()Returns the SkriptAddon instance if Skript integration is loaded.- Returns:
- The
SkriptAddoninstance, or null if Skript is not loaded.
-
hasFloodgate
public boolean hasFloodgate()Returns whether you are using floodgate.- Returns:
- The boolean value of floodgate.
-
getFloodgate
Returns the instance of Floodgate integration, if it is loaded.- Returns:
- The
Floodgateintegration instance, or null if not loaded.
-
getFancyNpcs
Returns the instance of the FancyNPCs integration, if it is loaded.- Returns:
- The
FancyNPCsintegration instance, or null if not loaded.
-
getCitizensNPC
Returns the instance of the CitizensNPC integration, if it is loaded.- Returns:
- The
CitizensNPCintegration instance, or null if not loaded.
-
getLuckPermsHandler
Returns the instance of the LuckPermsHandler, if it is loaded.- Returns:
- The
LuckPermsHandlerinstance, or null if not loaded.
-
hasMultiPaper
public boolean hasMultiPaper()Checks if MultiPaper integration is loaded.- Returns:
trueif MultiPaper integration is loaded,falseotherwise.
-
hasVault
public boolean hasVault()Checks if Vault integration is loaded.- Returns:
trueif Vault integration is loaded,falseotherwise.
-
hasVaultPermProvider
public boolean hasVaultPermProvider()Checks if Vault permissions provider is available.- Returns:
trueif Vault permissions provider is available,falseotherwise.
-
hasProtocolLib
public boolean hasProtocolLib()Checks if ProtocolLib integration is loaded.- Returns:
trueif ProtocolLib integration is loaded,falseotherwise.
-
hasCoreProtect
Deprecated.Unmaintained greedware plugin. Checks if CoreProtect integration is loaded.- Returns:
trueif CoreProtect integration is loaded,falseotherwise.
-
hasFurnitureLib
public boolean hasFurnitureLib()Checks if FurnitureLib integration is loaded.- Returns:
trueif FurnitureLib integration is loaded,falseotherwise.
-
hasFurnitureEngine
Deprecated.Plugin no longer exists externally Checks if FurnitureEngine integration is loaded.- Returns:
trueif FurnitureEngine integration is loaded,falseotherwise.
-
hasProtectionLib
public boolean hasProtectionLib()Checks if ProtectionLib integration is loaded.- Returns:
trueif ProtectionLib integration is loaded,falseotherwise.
-
hasItemsAdder
public boolean hasItemsAdder()Checks if ItemsAdder integration is loaded.- Returns:
trueif ItemsAdder integration is loaded,falseotherwise.
-
hasOraxen
Deprecated.Use Nexo instead. Unmaintained and will be for the forseeable future. Checks if Oraxen integration is loaded.- Returns:
trueif Oraxen integration is loaded,falseotherwise.
-
hasNexo
public boolean hasNexo()Checks if Nexo integration is loaded.- Returns:
trueif Nexo integration is loaded,falseotherwise.
-
hasMiniMessage
public boolean hasMiniMessage()Checks if MiniMessage integration is loaded.- Returns:
trueif MiniMessage integration is loaded,falseotherwise.
-
hasMineDown
public boolean hasMineDown()Checks if MineDown integration is loaded.- Returns:
trueif MineDown integration is loaded,falseotherwise.
-
hasChestSort
public boolean hasChestSort()Checks if ChestSort integration is loaded.- Returns:
trueif ChestSort integration is loaded,falseotherwise.
-
hasPlayerNPC
public boolean hasPlayerNPC()Checks if PlayerNPC integration is loaded.- Returns:
trueif PlayerNPC integration is loaded,falseotherwise.
-
hasCitizensNPC
public boolean hasCitizensNPC()Checks if CitizensNPC integration is loaded.- Returns:
trueif CitizensNPC integration is loaded,falseotherwise.
-
hasPlaceholderAPI
public boolean hasPlaceholderAPI()Checks if PlaceholderAPI integration is loaded.- Returns:
trueif PlaceholderAPI integration is loaded,falseotherwise.
-
hasSkript
public boolean hasSkript()Checks if Skript integration is loaded.- Returns:
trueif Skript integration is loaded,falseotherwise.
-
hasLuckPermsHandler
public boolean hasLuckPermsHandler()Checks if LuckPermsHandler is loaded.- Returns:
trueif LuckPermsHandler is loaded,falseotherwise.
-
hasFancyNpcs
public boolean hasFancyNpcs()Checks if FancyNpcs is loaded.- Returns:
trueif FancyNpcs is loaded,falseotherwise.
-
hasNoteBlockAPI
public boolean hasNoteBlockAPI()Checks if NoteBlockAPI is loaded.- Returns:
trueif NoteBlockAPI is loaded,falseotherwise.
-
checkForPluginManagers
public void checkForPluginManagers()Checks for known plugin managers that could cause compatibility issues.
-