Class IntegrationManager

java.lang.Object
com.ranull.graves.manager.IntegrationManager

public final class IntegrationManager extends Object
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 Details

    • IntegrationManager

      public IntegrationManager(Graves plugin)
      Initializes a new instance of the IntegrationManager 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

      public MultiPaper getMultiPaper()
      Returns the instance of the MultiPaper integration, if it is loaded.
      Returns:
      The MultiPaper integration instance, or null if not loaded.
    • getVault

      public Vault getVault()
      Returns the instance of the Vault integration, if it is loaded.
      Returns:
      The Vault integration instance, or null if not loaded.
    • getProtocolLib

      public ProtocolLib getProtocolLib()
      Returns the instance of the ProtocolLib integration, if it is loaded.
      Returns:
      The ProtocolLib integration instance, or null if not loaded.
    • getCoreProtect

      @Deprecated public CoreProtectIntegration 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

      public FurnitureLib getFurnitureLib()
      Returns the instance of the FurnitureLib integration, if it is loaded.
      Returns:
      The FurnitureLib integration instance, or null if not loaded.
    • getFurnitureEngine

      @Deprecated public FurnitureEngine 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

      public ProtectionLib getProtectionLib()
      Returns the instance of the ProtectionLib integration, if it is loaded.
      Returns:
      The ProtectionLib integration instance, or null if not loaded.
    • getItemsAdder

      public ItemsAdder getItemsAdder()
      Returns the instance of the ItemsAdder integration, if it is loaded.
      Returns:
      The ItemsAdder integration instance, or null if not loaded.
    • getOraxen

      @Deprecated public Oraxen 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

      public Nexo getNexo()
      Returns the instance of the Nexo integration, if it is loaded.
      Returns:
      The Nexo integration instance, or null if not loaded.
    • getMiniMessage

      public MiniMessage getMiniMessage()
      Returns the instance of the MiniMessage integration, if it is loaded.
      Returns:
      The MiniMessage integration instance, or null if not loaded.
    • getMineDown

      public MineDown getMineDown()
      Returns the instance of the MineDown integration, if it is loaded.
      Returns:
      The MineDown integration instance, or null if not loaded.
    • getChestSort

      public ChestSort getChestSort()
      Returns the instance of the ChestSort integration, if it is loaded.
      Returns:
      The ChestSort integration instance, or null if not loaded.
    • getPlayerNPC

      public PlayerNPC getPlayerNPC()
      Returns the instance of the PlayerNPC integration, if it is loaded.
      Returns:
      The PlayerNPC integration instance, or null if not loaded.
    • getNoteBlockAPI

      public NoteBlockAPI 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

      public Floodgate getFloodgate()
      Returns the instance of Floodgate integration, if it is loaded.
      Returns:
      The Floodgate integration instance, or null if not loaded.
    • getFancyNpcs

      public FancyNPCs getFancyNpcs()
      Returns the instance of the FancyNPCs integration, if it is loaded.
      Returns:
      The FancyNPCs integration instance, or null if not loaded.
    • getCitizensNPC

      public CitizensNPC getCitizensNPC()
      Returns the instance of the CitizensNPC integration, if it is loaded.
      Returns:
      The CitizensNPC integration instance, or null if not loaded.
    • getLuckPermsHandler

      public LuckPermsHandler 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 public boolean 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 public boolean 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 public boolean 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.