Losing changes to configuration fileBug
Since 1.2.0, each time I update to a new version, many of the values in my config file are overwritten with what seems to be defaults. This also happens after server restart if I have uploaded a revised version of the config. Once the server comes back up, any changes I had made are back to defaults. Thinking it may be a key/value naming conflict leftover from an old setting (realizing the config structure has changed recently), an inadvertent typo, a validation issue (although I've validated the config numerous times), or some other problem with my config, I have started from scratch: unloaded the plugin, deleted the config file entirely, reloaded the plugin and allow it to generate a new one, downloaded that new file and edited only a few boolean values, uploaded the edited config, and reload the plugin... only to lose those changes after restart or update every time. They are reverted back to defaults. Some examples of fields that refuse to retain my changes: "Town Enabled", "Outpost Enabled", "Bandit Enabled", "Home":"Use Clans", "TPT":"Use Clans", etc. Help?
Please let me know if this is an issue or not with 1.2.7 =/
nivex
Please let me know if this is an issue or not with 1.2.7 =/

Thank you for the quick reaction to this issue. Just updated to 1.2.7 and config value retention seems to be fixed. I appreciate your time.

nivex
Please let me know if this is an issue or not with 1.2.7 =/

Sorry to report that after a server restart, the aforementioned config options reverted back to defaults again using 1.2.7. Seems there is still an issue.

Merged post

@nivex this seems to still be an issue on server restart, but not on plugin reload. After a restart, it is still overwriting the config. This also results in the other issue we discussed in a separate thread regarding commands being registered that are disabled (they are re-enabled in the overwritten config and get re-registered again as a result).
I had this happen to me, too. I had Interrupt TP Safe Zone false, and it reset back to true.

Let's try again with 1.2.8. I've also added a message when the default config is loaded.

I do use this same config in another plugin and had issues with it resetting, too, but I fixed it. Both configs are nearly identical now. Let's hope I fixed it this time. If not, I have one more solution to try before I ask for help with it.
thanks for the info , dont think ill update till its been fixed
nivex
I had this happen to me, too. I had Interrupt TP Safe Zone false, and it reset back to true.

Let's try again with 1.2.8. I've also added a message when the default config is loaded.

I do use this same config in another plugin and had issues with it resetting, too, but I fixed it. Both configs are nearly identical now. Let's hope I fixed it this time. If not, I have one more solution to try before I ask for help with it.

I updated to 1.2.8, ensured my edited config was in place, and then performed a server restart and the config was once again overwritten... don't think it is fixed, unfortunately.

@nivex any progress or update on this? the config overwrite on server restart is still an issue for me. With 1.3.0, it even reverts the config back and excludes the new cave-based settings you just implemented from TPT and Town, as well as excludes several values from Town, Outpost, and Bandit (including the Location setting).
@nivex I hate to bother, but this is still a persisting issue that requires me to manually overwrite the config after every server restart. Any news?