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 theIntegrationManager
class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks 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.SkriptAddon
Returns the SkriptAddon instance if Skript integration is loaded.getVault()
Returns the instance of the Vault integration, if it is loaded.boolean
Checks if ChestSort integration is loaded.boolean
Checks if CitizensNPC integration is loaded.boolean
Deprecated.Unmaintained greedware plugin.boolean
Checks if FancyNpcs is loaded.boolean
Returns whether you are using floodgate.boolean
Deprecated.Plugin no longer exists externally Checks if FurnitureEngine integration is loaded.boolean
Checks if FurnitureLib integration is loaded.boolean
Checks if ItemsAdder integration is loaded.boolean
Checks if LuckPermsHandler is loaded.boolean
Checks if MineDown integration is loaded.boolean
Checks if MiniMessage integration is loaded.boolean
Checks if MultiPaper integration is loaded.boolean
hasNexo()
Checks if Nexo integration is loaded.boolean
Checks if NoteBlockAPI is loaded.boolean
Deprecated.Use Nexo instead.boolean
Checks if PlaceholderAPI integration is loaded.boolean
Checks if PlayerNPC integration is loaded.boolean
Checks if ProtectionLib integration is loaded.boolean
Checks if ProtocolLib integration is loaded.boolean
Checks if Skript integration is loaded.boolean
hasVault()
Checks if Vault integration is loaded.boolean
Checks if Vault permissions provider is available.void
load()
Loads all integrations for the Graves plugin.void
Loads Skript integration without reloading other integrations.void
reload()
Reloads all integrations by first unloading them and then loading them again.void
unload()
Unloads all integrations associated with the Graves plugin.void
Unloads Skript integration without unloading other integrations.
-
Constructor Details
-
IntegrationManager
Initializes a new instance of theIntegrationManager
class.- 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
MultiPaper
integration instance, or null if not loaded.
-
getVault
Returns the instance of the Vault integration, if it is loaded.- Returns:
- The
Vault
integration instance, or null if not loaded.
-
getProtocolLib
Returns the instance of the ProtocolLib integration, if it is loaded.- Returns:
- The
ProtocolLib
integration instance, or null if not loaded.
-
getCoreProtect
Deprecated.Unmaintained greedware plugin. Returns the instance of the CoreProtect integration, if it is loaded.- Returns:
- The
CoreProtect
integration instance, or null if not loaded.
-
getFurnitureLib
Returns the instance of the FurnitureLib integration, if it is loaded.- Returns:
- The
FurnitureLib
integration 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
FurnitureEngine
integration instance, or null if not loaded.
-
getProtectionLib
Returns the instance of the ProtectionLib integration, if it is loaded.- Returns:
- The
ProtectionLib
integration instance, or null if not loaded.
-
getItemsAdder
Returns the instance of the ItemsAdder integration, if it is loaded.- Returns:
- The
ItemsAdder
integration 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
Oraxen
integration instance, or null if not loaded.
-
getNexo
Returns the instance of the Nexo integration, if it is loaded.- Returns:
- The
Nexo
integration instance, or null if not loaded.
-
getMiniMessage
Returns the instance of the MiniMessage integration, if it is loaded.- Returns:
- The
MiniMessage
integration instance, or null if not loaded.
-
getMineDown
Returns the instance of the MineDown integration, if it is loaded.- Returns:
- The
MineDown
integration instance, or null if not loaded.
-
getChestSort
Returns the instance of the ChestSort integration, if it is loaded.- Returns:
- The
ChestSort
integration instance, or null if not loaded.
-
getPlayerNPC
Returns the instance of the PlayerNPC integration, if it is loaded.- Returns:
- The
PlayerNPC
integration instance, or null if not loaded.
-
getNoteBlockAPI
Returns the instance of the NoteBlockAPI integration, if it is loaded.- Returns:
- The
NoteBlockAPI
integration instance, or null if not loaded.
-
getSkript
public ch.njol.skript.SkriptAddon getSkript()Returns the SkriptAddon instance if Skript integration is loaded.- Returns:
- The
SkriptAddon
instance, 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
Floodgate
integration instance, or null if not loaded.
-
getFancyNpcs
Returns the instance of the FancyNPCs integration, if it is loaded.- Returns:
- The
FancyNPCs
integration instance, or null if not loaded.
-
getCitizensNPC
Returns the instance of the CitizensNPC integration, if it is loaded.- Returns:
- The
CitizensNPC
integration instance, or null if not loaded.
-
getLuckPermsHandler
Returns the instance of the LuckPermsHandler, if it is loaded.- Returns:
- The
LuckPermsHandler
instance, or null if not loaded.
-
hasMultiPaper
public boolean hasMultiPaper()Checks if MultiPaper integration is loaded.- Returns:
true
if MultiPaper integration is loaded,false
otherwise.
-
hasVault
public boolean hasVault()Checks if Vault integration is loaded.- Returns:
true
if Vault integration is loaded,false
otherwise.
-
hasVaultPermProvider
public boolean hasVaultPermProvider()Checks if Vault permissions provider is available.- Returns:
true
if Vault permissions provider is available,false
otherwise.
-
hasProtocolLib
public boolean hasProtocolLib()Checks if ProtocolLib integration is loaded.- Returns:
true
if ProtocolLib integration is loaded,false
otherwise.
-
hasCoreProtect
Deprecated.Unmaintained greedware plugin. Checks if CoreProtect integration is loaded.- Returns:
true
if CoreProtect integration is loaded,false
otherwise.
-
hasFurnitureLib
public boolean hasFurnitureLib()Checks if FurnitureLib integration is loaded.- Returns:
true
if FurnitureLib integration is loaded,false
otherwise.
-
hasFurnitureEngine
Deprecated.Plugin no longer exists externally Checks if FurnitureEngine integration is loaded.- Returns:
true
if FurnitureEngine integration is loaded,false
otherwise.
-
hasProtectionLib
public boolean hasProtectionLib()Checks if ProtectionLib integration is loaded.- Returns:
true
if ProtectionLib integration is loaded,false
otherwise.
-
hasItemsAdder
public boolean hasItemsAdder()Checks if ItemsAdder integration is loaded.- Returns:
true
if ItemsAdder integration is loaded,false
otherwise.
-
hasOraxen
Deprecated.Use Nexo instead. Unmaintained and will be for the forseeable future. Checks if Oraxen integration is loaded.- Returns:
true
if Oraxen integration is loaded,false
otherwise.
-
hasNexo
public boolean hasNexo()Checks if Nexo integration is loaded.- Returns:
true
if Nexo integration is loaded,false
otherwise.
-
hasMiniMessage
public boolean hasMiniMessage()Checks if MiniMessage integration is loaded.- Returns:
true
if MiniMessage integration is loaded,false
otherwise.
-
hasMineDown
public boolean hasMineDown()Checks if MineDown integration is loaded.- Returns:
true
if MineDown integration is loaded,false
otherwise.
-
hasChestSort
public boolean hasChestSort()Checks if ChestSort integration is loaded.- Returns:
true
if ChestSort integration is loaded,false
otherwise.
-
hasPlayerNPC
public boolean hasPlayerNPC()Checks if PlayerNPC integration is loaded.- Returns:
true
if PlayerNPC integration is loaded,false
otherwise.
-
hasCitizensNPC
public boolean hasCitizensNPC()Checks if CitizensNPC integration is loaded.- Returns:
true
if CitizensNPC integration is loaded,false
otherwise.
-
hasPlaceholderAPI
public boolean hasPlaceholderAPI()Checks if PlaceholderAPI integration is loaded.- Returns:
true
if PlaceholderAPI integration is loaded,false
otherwise.
-
hasSkript
public boolean hasSkript()Checks if Skript integration is loaded.- Returns:
true
if Skript integration is loaded,false
otherwise.
-
hasLuckPermsHandler
public boolean hasLuckPermsHandler()Checks if LuckPermsHandler is loaded.- Returns:
true
if LuckPermsHandler is loaded,false
otherwise.
-
hasFancyNpcs
public boolean hasFancyNpcs()Checks if FancyNpcs is loaded.- Returns:
true
if FancyNpcs is loaded,false
otherwise.
-
hasNoteBlockAPI
public boolean hasNoteBlockAPI()Checks if NoteBlockAPI is loaded.- Returns:
true
if NoteBlockAPI is loaded,false
otherwise.
-
checkForPluginManagers
public void checkForPluginManagers()Checks for known plugin managers that could cause compatibility issues.
-