Package com.ordwen.odailyquests.rewards
Class RewardLoader
java.lang.Object
com.ordwen.odailyquests.rewards.RewardLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigurationError(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.getRewardFromSection(org.bukkit.configuration.ConfigurationSection section, String fileName, String questIndex) Load a reward from a configuration section.
-
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
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 occurredparameter- the parameter that caused the errorreason- the reason of the errorquestIndex- the index of the quest in the file
-