Class RewardLoader

java.lang.Object
com.ordwen.odailyquests.rewards.RewardLoader

public class RewardLoader extends Object
  • Constructor Details

    • RewardLoader

      public RewardLoader()
  • Method Details

    • getRewardFromSection

      public Reward getRewardFromSection(org.bukkit.configuration.ConfigurationSection section, String fileName, String questIndex)
      Load a reward from a configuration section.
      Parameters:
      section - configuration section.
      Returns:
      reward.
    • configurationError

      public void configurationError(String fileName, String parameter, String reason, String questIndex)
      Display an error message in the console when a reward cannot be loaded because of a configuration error.
      Parameters:
      fileName - the name of the file where the error occurred
      parameter - the parameter that caused the error
      reason - the reason of the error
      questIndex - the index of the quest in the file