save

fun save(plugin: Plugin, config: Any)

Saves the config object to the "config.yml" file in the plugin's data folder.

Parameters

plugin

the Plugin instance

config

the configuration object to save


fun save(file: File, config: Any)

Saves the config object to the specified file.

Parameters

file

the configuration File

config

the configuration object to save