Implement system to update changes values in the configs.
ryan-clancy opened this issue ยท 1 comments
Currently when a value is changed in the messages.yml file (note changed, not a new node added), the user will receive improper formatting for the command output as the saveDefaultConfig() method only looks for missing values, not changed ones.
A system to update the existing values would be an ideal solution to this problem, rather than forcing the user to remove the existing file.
Proposed solutions:
-
Check the current version and see what changes needed applying. Care would need to be taken if a version is skipped (a version stepping update solution would need to be used).
-
Wipe the messages.yml each time the server is run. This defeats the purpose of having such a file, however.
-
Internalize the messages.yml in the jar. This allows more advanced users to still edit the file if they really wish to do so. This is preferential to removing the file altogether.