Class PluginIntegrations
java.lang.Object
com.palmergames.bukkit.towny.hooks.PluginIntegrations
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
PluginIntegrationspublic PluginIntegrations()
 
- 
- 
Method Details- 
getInstance
- 
getTownyPluginsForUniverseCommand
- 
checkForPluginsFind permission, economy and addon plugins, plugins which require warnings, print out information to the log.- Parameters:
- towny- Towny plugin instance.
 
- 
setupAndPrintEconomypublic void setupAndPrintEconomy(boolean configSetForEconomy) 
- 
registerPermissionsProviders
- 
isPluginEnabled
- 
disable3rdPartyPluginIntegrationspublic void disable3rdPartyPluginIntegrations()
- 
loadPAPIExpansionpublic void loadPAPIExpansion(boolean reload) 
- 
unloadPAPIExpansionpublic void unloadPAPIExpansion(boolean reload) 
- 
checkCitizensDeprecated.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.
 
- 
isNPCpublic boolean isNPC(@NotNull @NotNull org.bukkit.entity.Entity entity) - Parameters:
- entity- Entity to check.
- Returns:
- true if the entity is a plugin-created NPC.
 
- 
checkHostileEliteMobspublic boolean checkHostileEliteMobs(org.bukkit.entity.Entity entity) 
 
- 
isNPC(Entity)instead.