mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-14 14:45:41 +01:00
Fix Heroes reward checking for wrong plugin, see #603
This commit is contained in:
parent
118f5a6b2d
commit
3a07b7ba95
@ -2420,7 +2420,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
if (config.contains("quests." + questName + ".rewards.heroes-exp-amounts")) {
|
||||
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) {
|
||||
if (Quests.heroes == null) {
|
||||
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