Setting Values
Example of settings values
// Setting a value into a path.
// This can then be saved to the file with .save()
configuration.set("path", "value");
// Overwriteing a section with a value.
ConfigurationSection section = configuration.getSection("path");
section.set("value");
// Setting a value into the current section.
// You can use this method to set values into a section
// that will not be saved to the file when doing .save()
ConfigurationSection section = configuration.getSection("path");
configuration.setInSection("path", "value");
Last updated