Memory Configuration
It's a map that is nice. Essentially a configuration file that doesn't exist.
Create
ConfigurationSection section = new MemoryConfigurationSection();Read
key: "Value"String string = section.getString("key");There are many methods for almost all types.
String string section.getString("key", "Default value");If the value doesn't exist or returns null, it will use the default value instead.
key: "Value"
or
key:
- "Element 1"
- "Element 2"// (path, list joiner, default value)
String string = section.getAdaptedString("key", "\n", "Default Value");Write
section.set("key", "value");Last updated