Carleslc / Simple-YAML

This Java API provides an easy-to-use way to store data and provide configurations using the YAML format.
https://carleslc.me/Simple-YAML
GNU General Public License v3.0
130 stars 38 forks source link

Auto updates #51

Closed creatorfromhell closed 2 years ago

creatorfromhell commented 2 years ago

Does this library automatically add nodes from the default resource to the existing yaml file if they're not currently present?

Carleslc commented 2 years ago

Yes, this is what copyDefaults(true) does (it is set to true by default since version 1.6.1), just ensure you add your default values using addDefault, setDefaults or addDefaults.

See the example.

Carleslc commented 2 years ago

I'm closing this issue as it is answered. Reopen it if there are any doubts.