Class PluginIntegrations

java.lang.Object
com.palmergames.bukkit.towny.hooks.PluginIntegrations

public class PluginIntegrations extends Object
  • Constructor Details

    • PluginIntegrations

      public PluginIntegrations()
  • Method Details

    • getInstance

      public static PluginIntegrations getInstance()
    • getTownyPluginsForUniverseCommand

      public List<String> getTownyPluginsForUniverseCommand()
    • checkForPlugins

      public void checkForPlugins(Towny towny)
      Find permission, economy and addon plugins, plugins which require warnings, print out information to the log.
      Parameters:
      towny - Towny plugin instance.
    • setupAndPrintEconomy

      public void setupAndPrintEconomy(boolean configSetForEconomy)
    • registerPermissionsProviders

      public String registerPermissionsProviders(Towny towny)
    • isPluginEnabled

      public boolean isPluginEnabled(@NotNull @NotNull String pluginName)
    • disable3rdPartyPluginIntegrations

      public void disable3rdPartyPluginIntegrations()
    • loadPAPIExpansion

      public void loadPAPIExpansion(boolean reload)
    • unloadPAPIExpansion

      public void unloadPAPIExpansion(boolean reload)
    • checkCitizens

      @Deprecated public boolean checkCitizens(org.bukkit.entity.Entity entity)
      Deprecated.
      Deprecated as of 0.100.1.10, please use isNPC(Entity) instead.
      Check if the entity is a Citizens NPC. Catches the NoClassDefFoundError thrown when Citizens is present but failed to start up correctly.
      Parameters:
      entity - Entity to check.
      Returns:
      true if the entity is an NPC.
    • isNPC

      public boolean isNPC(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Parameters:
      entity - Entity to check.
      Returns:
      true if the entity is a plugin-created NPC.
    • checkHostileEliteMobs

      public boolean checkHostileEliteMobs(org.bukkit.entity.Entity entity)