Class RerollMaximum
java.lang.Object
com.ordwen.odailyquests.configuration.essentials.RerollMaximum
- All Implemented Interfaces:
IConfigurable
Configuration holder for the maximum number of quest rerolls allowed per player.
This value is loaded from the configuration file and exposed through a static accessor for convenient use throughout the plugin.
-
Constructor Summary
ConstructorsConstructorDescriptionRerollMaximum(ConfigurationFile configurationFile) Creates a new reroll maximum configuration loader. -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the maximum number of rerolls allowed for a player.voidload()Loads the reroll maximum value from the configuration file.
-
Constructor Details
-
RerollMaximum
Creates a new reroll maximum configuration loader.- Parameters:
configurationFile- the configuration file providing the reroll maximum value
-
-
Method Details
-
load
public void load()Loads the reroll maximum value from the configuration file.The value is read from the "reroll_maximum" configuration path.
- Specified by:
loadin interfaceIConfigurable
-
getMaxRerolls
public static int getMaxRerolls()Returns the maximum number of rerolls allowed for a player.- Returns:
- the configured maximum reroll count
-