###Generic Config File###
- Make a config.yml file
- Put it in the /resources folder
- Add
$this->saveDefaultConfig();
$this->reloadConfig();
to onEnable()
4. Use $this->getConfig()
to get the configuration.
###Custom Config Files:###
- Create a new config file with
$this->myCustomConfig = new Config($this->getDataFolder() . "nameOfTheFlie.yml", Config::YAML, array(
"thing1" => "value1",
"thing2" => "value2",
));
- Use
$this->myCustomConfig
to get the configuration.