Class PluginIntegrations
java.lang.Object
com.palmergames.bukkit.towny.hooks.PluginIntegrations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckCitizens(org.bukkit.entity.Entity entity) Deprecated.voidcheckForPlugins(Towny towny) Find permission, economy and addon plugins, plugins which require warnings, print out information to the log.booleancheckHostileEliteMobs(org.bukkit.entity.Entity entity) voidstatic PluginIntegrationsbooleanisNPC(@NotNull org.bukkit.entity.Entity entity) booleanisPluginEnabled(@NotNull String pluginName) voidloadPAPIExpansion(boolean reload) voidsetupAndPrintEconomy(boolean configSetForEconomy) voidunloadPAPIExpansion(boolean reload)
-
Constructor Details
-
PluginIntegrations
public PluginIntegrations()
-
-
Method Details
-
getInstance
-
getTownyPluginsForUniverseCommand
-
checkForPlugins
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
-
isPluginEnabled
-
disable3rdPartyPluginIntegrations
public void disable3rdPartyPluginIntegrations() -
loadPAPIExpansion
public void loadPAPIExpansion(boolean reload) -
unloadPAPIExpansion
public void unloadPAPIExpansion(boolean reload) -
checkCitizens
Deprecated.Deprecated as of 0.100.1.10, please useisNPC(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)
-
isNPC(Entity)instead.