mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-09 01:47:45 +01:00
Refuse to load quests without at least one stage, fixes #1358
This commit is contained in:
parent
88599f69d3
commit
e53832cd40
@ -1932,6 +1932,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
private void loadQuestStages(Quest quest, FileConfiguration config, String questKey)
|
||||
throws StageFormatException, ActionFormatException, ConditionFormatException {
|
||||
ConfigurationSection questStages = config.getConfigurationSection("quests." + questKey + ".stages.ordered");
|
||||
if (questStages == null) {
|
||||
getLogger().severe(ChatColor.RED + questKey + " must have at least one stage!");
|
||||
return;
|
||||
}
|
||||
for (String stage : questStages.getKeys(false)) {
|
||||
int stageNum = 0;
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user