ToolSet / com.zndevs.toolset.tools / ConfigurationTools

ConfigurationTools

object ConfigurationTools

Tools to help with reloading configuration and commands

Functions

createToolSetDataFile fun createToolSetDataFile(plugin: Plugin, resourcePath: String, dataFileName: String): Boolean
Creates a data file under the plugins/ToolSet folder
setIfNotSet fun setIfNotSet(section: ConfigurationSection, path: String, value: Any): ConfigurationSection
Set a configuration value if it has not yet been setfun setIfNotSet(section: YamlConfiguration, path: String, value: Any): YamlConfiguration
Set a configuration value if it has not yet been set YamlConfiguration versionfun setIfNotSet(section: ToolSetConfiguration, path: String, value: Any): ToolSetConfiguration
Set a configuration value if it has not yet been set ToolSetConfiguration version