For example if my plugin creates data file with those fields:
How can I edit those with the said plugin?Code:{ "examplename": { "exampledata": { "example1": 5, "example2": 7, "example3": 9, } } }
Solved Editing a plugin's data file?
Discussion in 'Rust Development' started by jackcat, Mar 18, 2018.
-
No one can help unless you show the real data and tell us what plugin this is from
Last edited by a moderator: Mar 18, 2018 -
Wulf Community Admin
If manually editing: unload the plugin, open the data file, edit it, save it, load the plugin.
If editing via the plugin itself, you'd need to provide details. -
So in other words it's complicated...
But is there an easy way to clear the whole file using something like
Code:storedData.MyProfile.Remove(); Interface.Oxide.DataFileSystem.WriteObject("Test", storedData);
-
Wulf Community Admin
-
Solved.