Changes to config reset to default file on reload

Every time I reload the plugin any changes I made to the config json get reset to the default config. Need some help with this one. I'm also running DynamicPVP and ZoneManager. 

TruePVE does not reset the configuration file. it can only create a new one if it does not exist. otherwise it will only load a default file if the current config file contains an error and that error will be in the server console when the plugin loads

- Also running DynamicPVP and ZoneManager.

- I use ValidateJSON before saving the configuration to avoid errors.

- Still the file is reset to default.

- Any solution?.

I managed to fix it.

Solution:

1st Unlink TruePVE from DynamicPVP by removing //Requires: TruePVE from the DynamicPVP.cs file

2º Modify TruePVE.json and use ValidateJSON to detect errors.

3º Save TruPVE.json and load the plugin with oxide.reload TruPVE.json

4º Link TruePVE to DynamicPVP by adding //Requires: TruePVE from the DynamicPVP.cs file

5º Load with oxide.reload DynamicPVP.cs and you will see that TruPVE.json stays with your configuration.

nivex

here's the solution from your post which determines DynamicPVP conflicting with TruePVE, since it uses //Requires:

I don't see DynamicPVP using // Requires for TruePVE, only ZoneManager.




There it is shown in the image where it says # NOTE that DynamicPVP suggests using // Requires for TruePVE