Class PluginIntegrations
java.lang.Object
com.palmergames.bukkit.towny.hooks.PluginIntegrations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkCitizens
(org.bukkit.entity.Entity entity) Deprecated.void
checkForPlugins
(Towny towny) Find permission, economy and addon plugins, plugins which require warnings, print out information to the log.boolean
checkHostileEliteMobs
(org.bukkit.entity.Entity entity) void
static PluginIntegrations
boolean
isNPC
(@NotNull org.bukkit.entity.Entity entity) boolean
isPluginEnabled
(@NotNull String pluginName) void
loadPAPIExpansion
(boolean reload) void
setupAndPrintEconomy
(boolean configSetForEconomy) void
unloadPAPIExpansion
(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.