[ + ] Added a new moveTo method which allows you move old paths across files, e.g. moving an option from config.yml to new-config.yml.
[ + ] Grouped all necessary saving procedures into a new method called initiateSave.
[ + ] Added several getter methods, such as getInteger and getString. All allow default values to be passed through, and if a value provided is written as a string, methods like getInteger and getDouble still pick out the required value (such as '300.0' will return 300.0, whilst when using normal Bukkit methods, this returns 0.0).
[ + ] Added an isNew method, which returns whether the file is new or not.
[ + ] Fixed comments not persisting in examples.
[ + ] Fixed sections not being implemented at the end when not at the start of a pending comment.
[ + ] Pending comments (those added using addComment) are no longer added directly below an option with a parent, but added above the parent now, with the following code:
Code (Text):
addComment("Test 1");
addDefault("option.option-1", true, "Test 2");
Code (YAML):
option
:
# Test 1
# Test 2
option-1
: true
# Test 1
option
:
# Test 2
option-1
: true