Config
class Config(val file: File, val internalConfig: YamlConfiguration = YamlConfiguration.loadConfiguration(file)) : ConfigSection(source)
Wraps a config file and provides useful facilities for writing/reading it.
If the file changes on disk, you will need to create a new Config object to get the latest version of the file.
Constructors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Returns null if the key does not exist or if the value cannot be converted to the desired type.
Returns defaultValue if the key does not exist or if the value cannot be converted to the desired type.
Link copied to clipboard
Throws an error if the key does not exist or if the value cannot be converted to the desired type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Gets all the values in the section that are themselves sections.
Link copied to clipboard
'Merges' other with this ConfigSection by copying all of its keys into this ConfigSection. If a key exists in both section, this ConfigSection's keys take priority.