Interface IConfigSpigot
- All Superinterfaces:
IBlockAnalyzerConfig, IConfig, IRestartable
Represents the configuration of the plugin for the Spigot platform.
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of command aliases.org.bukkit.MaterialguiMaterial(StructureType type) Gets the material used for the GUI of a specific structure type.intGets the timeout for the head cache.booleanisProtectionHookEnabled(@Nullable IProtectionHookSpigotSpecification spec) Checks if a specific protection hook is enabled.Set<org.bukkit.Material> Gets the configured set of powerblock types.booleanChecks if the resource pack is enabled.Methods inherited from interface IBlockAnalyzerConfig
materialBlacklistMethods inherited from interface IConfig
allowClientLocale, allowRedstone, animationTimeMultiplier, debug, flagMovementFormula, isOldConfigPresent, isStructureTypeEnabled, loadChunksForToggle, locale, logLevel, maxBlockSpeed, maxBlocksToMove, maxPowerblockDistance, maxStructureCount, maxStructureSize, powerblockCacheTimeout, priceFormula, primaryCommandName, reloadConfig, skipAnimationsByDefault, specificationTimeoutMethods inherited from interface IRestartable
initialize, shutDown
-
Method Details
-
powerblockTypes
Set<org.bukkit.Material> powerblockTypes()Gets the configured set of powerblock types.- Returns:
- A set of powerblock types.
-
resourcePackEnabled
boolean resourcePackEnabled()Checks if the resource pack is enabled.- Returns:
- true if the resource pack is enabled, false otherwise.
-
guiMaterial
Gets the material used for the GUI of a specific structure type.- Parameters:
type- The structure type for which to get the GUI material.- Returns:
- The material used for the GUI of the specified structure type.
-
commandAliases
-
headCacheTimeout
int headCacheTimeout()Gets the timeout for the head cache.- Returns:
- The timeout in seconds for the head cache in seconds.
-
isProtectionHookEnabled
Checks if a specific protection hook is enabled.- Parameters:
spec- The specification of the protection hook to check.- Returns:
- true if the hook is enabled, false otherwise.
-