Esempio n. 1
0
 @Override
 public void save() {
   try {
     super.save();
   } catch (ConfigurationException e) {
     e.printStackTrace();
   }
 }
  public void load() {
    YamlConfiguration conf = new YamlConfiguration(propertiesFile);

    try {
      conf.load();
      conf.setWritesDefaults(true);
    } catch (ConfigurationException e) {
      return;
    }

    try {
      conf.save();
    } catch (ConfigurationException ignore) {
    }
  }