Provide additional context for failed requirement quests, fixes #1530

This commit is contained in:
PikaMug 2020-12-31 02:33:18 -05:00
parent d04c19fedf
commit e2da327cdf

View File

@ -1967,7 +1967,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
temp.add(getQuest(name)); temp.add(getQuest(name));
} else { } else {
throw new QuestFormatException("Requirement quest-blocks has unknown quest name " throw new QuestFormatException("Requirement quest-blocks has unknown quest name "
+ failedQuest, questKey); + name + ", place it earlier in file so it loads first", questKey);
} }
done = true; done = true;
break; break;
@ -2003,7 +2003,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
temp.add(getQuest(name)); temp.add(getQuest(name));
} else { } else {
throw new QuestFormatException("Requirement quests has unknown quest name " throw new QuestFormatException("Requirement quests has unknown quest name "
+ failedQuest, questKey); + name + ", place it earlier in file so it loads first", questKey);
} }
done = true; done = true;
break; break;