kangarko / Foundation

Foundation™ helps you create highly customized Minecraft plugins (based on Spigot/Paper API) that support multiple MC versions.
https://mineacademy.org
305 stars 63 forks source link

Update YamlStaticConfig.java #287

Closed EgehanKilicarslan closed 3 months ago

EgehanKilicarslan commented 3 months ago

YamlStaticConfig#getBoolean(path, def) added YamlStaticConfig#getString(path, def) added

kangarko commented 3 months ago

Thank you, but that goes out of alignment with how static settings were made. Settings.yml and the locale file is not meant to be used without a default file which contains all the values, hence no need for a default supplement. You can use SimpleConfig if you need default values.

broken1arrow commented 3 months ago

Thank you, but that goes out of alignment with how static settings were made. Settings.yml and the locale file is not meant to be used without a default file which contains all the values, hence no need for a default supplement. You can use SimpleConfig if you need default values.

could not values be null if the end user remove value after the file is created?

kangarko commented 3 months ago

No because we put the value back again from the default file if it is missing from the disk file.