java.lang.Object
com.ordwen.odailyquests.configuration.essentials.RerollMaximum
All Implemented Interfaces:
IConfigurable

public class RerollMaximum extends Object implements 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 Details

    • RerollMaximum

      public RerollMaximum(ConfigurationFile configurationFile)
      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:
      load in interface IConfigurable
    • getMaxRerolls

      public static int getMaxRerolls()
      Returns the maximum number of rerolls allowed for a player.
      Returns:
      the configured maximum reroll count