Correct erroneous message when missing Heroes, fixes #603

This commit is contained in:
BuildTools 2018-12-31 01:56:08 -05:00
parent 8440ab2b80
commit f12e27374e

View File

@ -2418,7 +2418,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
if (Quests.checkList(config.getList("quests." + questName + ".rewards.heroes-exp-amounts"), Double.class)) {
for (String heroClass : config.getStringList("quests." + questName + ".rewards.heroes-exp-classes")) {
if (Quests.mcmmo == null) {
skipQuestProcess("" + heroClass + " in heroes-exp-classes: Reward in Quest " + quest.getName() + " requires the mcMMO plugin!");
skipQuestProcess("" + heroClass + " in heroes-exp-classes: Reward in Quest " + quest.getName() + " requires the Heroes plugin!");
} else if (Quests.heroes.getClassManager().getClass(heroClass) == null) {
skipQuestProcess("" + heroClass + " in heroes-exp-classes: Reward in Quest " + quest.getName() + " is not a valid Heroes class name!");
}