mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-28 12:07:43 +01:00
Merge pull request #657 from BerndiVader/master
renew custom linkedlists in stages on reload to apply possible changes
This commit is contained in:
commit
1fbdf88092
@ -2014,6 +2014,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
ConfigurationSection questStages = config.getConfigurationSection("quests." + questKey + ".stages.ordered");
|
||||
for (String s2 : questStages.getKeys(false)) {
|
||||
Stage oStage = quest.getStage(Integer.valueOf(s2) - 1);
|
||||
oStage.customObjectives=new LinkedList<>();
|
||||
oStage.customObjectiveCounts=new LinkedList<>();
|
||||
oStage.customObjectiveData=new LinkedList<>();
|
||||
oStage.customObjectiveDisplays=new LinkedList<>();
|
||||
if (config.contains("quests." + questKey + ".stages.ordered." + s2 + ".custom-objectives")) {
|
||||
ConfigurationSection sec = config.getConfigurationSection("quests." + questKey + ".stages.ordered." + s2 + ".custom-objectives");
|
||||
for (String path : sec.getKeys(false)) {
|
||||
|
Loading…
Reference in New Issue
Block a user