mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-12 13:43:57 +01:00
Correct erroneous message when missing Heroes, fixes #603
This commit is contained in:
parent
8440ab2b80
commit
f12e27374e
@ -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!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user