Package org.bukkit.util.config

Examples of org.bukkit.util.config.Configuration.save()


        Configuration config = new Configuration(getModPackYMLFile());
        config.load();
        config.setProperty("current", selected);
        config.setProperty("launcher", Main.build);
        config.save();

        updated = true;
      }
    }
  }
View Full Code Here


  }

  public void install() {
    Configuration config = ModPackYML.getModPackYML();
    config.setProperty("current", getBuild());
    config.save();
  }

  public String getInstalledBuild() {
    Configuration config = ModPackYML.getModPackYML();
    return config.getString("current");
View Full Code Here

  }

  public static void setInstalledVersion(String version) {
    Configuration config = getMinecraftYML();
    config.setProperty("current", version);
    config.save();
  }

  public static String getInstalledVersion() {
    Configuration config = getMinecraftYML();
    return config.getString("current");
View Full Code Here

          Configuration config = getConfig();
          latest = config.getString("latest");
          recommended = config.getString("recommended");
          if (current != null) {
            config.setProperty("current", current);
            config.save();
          }
        }
        updated = true;
      }
    }
View Full Code Here

        dataFolder.mkdirs();
        File settingsFile =new File(dataFolder,"BigBrother.yml");
       
        Configuration cfg = new Configuration(settingsFile);
        cfg.setProperty("database.type", "MYSQL");
        cfg.save();

        BBSettings.initialize(dataFolder);
       
        Assert.assertTrue("Configuration didn't get saved.",BBSettings.usingDBMS(DBMS.MYSQL));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.