@Override
 public void save() throws ConfigurationException {
   super.save();
   ConfigurationNode node = this.getParent().getNode("worlds", this.getWorldName());
   for (Map.Entry<String, Object> entry : this.getValues().entrySet()) {
     node.getNode(entry.getKey()).setValue(entry.getValue());
   }
 }
Exemple #2
0
 @Override
 public void load() throws ConfigurationException {
   super.load();
   super.save();
 }
 @Override
 public void load() throws ConfigurationException {
   this.setConfiguration(
       new MapConfiguration(this.getParent().getNode("worlds", this.getWorldName()).getValues()));
   super.load();
 }