mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-09 20:31:24 +01:00
Cancel loading if main section marker is missing, fixes #676
This commit is contained in:
parent
7aef0a7c75
commit
9e547e56da
@ -862,6 +862,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
questsSection = config.createSection("quests");
|
||||
needsSaving = true;
|
||||
}
|
||||
if (questsSection == null) {
|
||||
getLogger().severe("Missing \'quests\' section marker within quests.yml, canceled loading");
|
||||
return;
|
||||
}
|
||||
for (String questKey : questsSection.getKeys(false)) {
|
||||
try { // main "skip quest" try/catch block
|
||||
Quest quest = new Quest();
|
||||
|
Loading…
Reference in New Issue
Block a user