ToolSet / com.zndevs.toolset.tools / ConfigurationTools / setIfNotSet
setIfNotSet
fun setIfNotSet(section: ConfigurationSection, path: String, value: Any): ConfigurationSection
Set a configuration value if it has not yet been set
Parameters
section - The configuration section containing the value
path - The path to the value
value - The value to set the path to
Return The configuration section containing the value
fun setIfNotSet(section: YamlConfiguration, path: String, value: Any): YamlConfiguration
Set a configuration value if it has not yet been set YamlConfiguration version
Parameters
section - The configuration section containing the value
path - The path to the value
value - The value to set the path to
Return The configuration section containing the value
fun setIfNotSet(section: ToolSetConfiguration, path: String, value: Any): ToolSetConfiguration
Set a configuration value if it has not yet been set ToolSetConfiguration version
Parameters
section - The configuration section containing the value
path - The path to the value
value - The value to set the path to
Return The configuration section containing the value