Class ConfigFile
java.lang.Object
me.tayebyassine.homestead.resources.ResourceFile
me.tayebyassine.homestead.resources.files.ConfigFile
Typed accessor for
config.yml.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe interval (in minutes) between cache refreshes.The database backend provider name.getDiscordEventMessage(String eventName) The message template for a specific Discord webhook event.The Discord webhook URL for sending event notifications.The list of configured map icon keys.The key of the default map icon.The material or identifier for a specific map icon.intThe interval (in seconds) for dynamic maps update.The active language locale code (e.g.The active menus locale code (e.g.The default value shown by a PlaceholderAPI placeholder when no region context is available.The player input type used for in-game prompts.booleanWhether BlueMap markers should render as 2D.booleanWhether the plugin debug mode is turned on.booleanWhether the Discord webhook integration is enabled.booleanisDiscordEventEnabled(String eventName) Whether a specific Discord webhook event is enabled.booleanWhether the dynamic maps feature is enabled.booleanWhether custom map icons are enabled on dynamic maps.booleanWhether anonymous usage statistics (bStats and FastStats) are enabled.booleanWhether existing WorldGuard regions should be protected from claiming.booleanWhether FAWE chunk regeneration is enabled for region operations.Methods inherited from class ResourceFile
getBoolean, getBoolean, getConfig, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getKeysUnderPath, getLong, getLong, getRaw, getString, getString, getStringList
-
Constructor Details
-
ConfigFile
- Throws:
FileNotFoundException
-
-
Method Details
-
getLanguageSetting
The active language locale code (e.g."en-US").- Returns:
- the language setting, defaults to
"en-US"
-
getMenusSetting
The active menus locale code (e.g."en-US").- Returns:
- the menus locale setting, defaults to
"en-US"
-
isDebugEnabled
public boolean isDebugEnabled()Whether the plugin debug mode is turned on.- Returns:
trueif debug logging is enabled, defaults tofalse
-
isMetricsEnabled
public boolean isMetricsEnabled()Whether anonymous usage statistics (bStats and FastStats) are enabled.- Returns:
trueif metrics are enabled, defaults totrue
-
getCacheInterval
public int getCacheInterval()The interval (in minutes) between cache refreshes.- Returns:
- cache interval in minutes, defaults to
30
-
getDatabaseProvider
The database backend provider name.- Returns:
- provider identifier, defaults to
"sqlite"
-
regenerateChunksWithFAWE
public boolean regenerateChunksWithFAWE()Whether FAWE chunk regeneration is enabled for region operations.- Returns:
trueif FAWE regeneration is enabled, defaults tofalse
-
protectWorldGuardRegions
public boolean protectWorldGuardRegions()Whether existing WorldGuard regions should be protected from claiming.- Returns:
trueif WorldGuard protection is active, defaults tofalse
-
isDynamicMapsEnabled
public boolean isDynamicMapsEnabled()Whether the dynamic maps feature is enabled.- Returns:
trueif dynamic maps are enabled, defaults tofalse
-
getDynamicMapsUpdateInterval
public int getDynamicMapsUpdateInterval()The interval (in seconds) for dynamic maps update.- Returns:
- update interval in seconds, defaults to
60
-
isDynamicMapsIconsEnabled
public boolean isDynamicMapsIconsEnabled()Whether custom map icons are enabled on dynamic maps.- Returns:
trueif icons are enabled, defaults tofalse
-
getDynamicMapsIconsDefault
The key of the default map icon.- Returns:
- default icon key, defaults to
""
-
getDynamicMapsIconKeys
-
getDynamicMapsIconValue
-
isBlueMapUse2dMarkers
public boolean isBlueMapUse2dMarkers()Whether BlueMap markers should render as 2D.- Returns:
trueif 2D markers are used, defaults tofalse
-
isDiscordEnabled
public boolean isDiscordEnabled()Whether the Discord webhook integration is enabled.- Returns:
trueif Discord integration is on, defaults tofalse
-
getDiscordWebhookURL
The Discord webhook URL for sending event notifications.- Returns:
- the webhook URL string
-
isDiscordEventEnabled
Whether a specific Discord webhook event is enabled.- Parameters:
eventName- the event identifier (e.g."region_create")- Returns:
trueif the event webhook fires, defaults tofalse
-
getDiscordEventMessage
-
getPlayerInputType
The player input type used for in-game prompts.- Returns:
- the input type string, defaults to
""
-
getPlaceholderDefault
-