Trying to add description and everything is deletedSolved
Every time I edit the plugin data to add a description, all commands are deleted.
If you are trying to edit oxide/data files directly, the plugin cannot be loading during that time.
I try everything...Everytime getting same error.

First I do: oxide.unload ServerRewards
Then I edit it, save it, close everything and do: oxide.reload ServerRewards and it gives me this error:
[ServerRewards] No reward data found! Creating a new data file

[ServerRewards] All UI elements have been successfully generated!

Calling 'OnServerInitialized' on 'ServerRewards v0.4.67' took 123ms

I go back to DATA and everything is fine, but nothing appears in the shop.
The data resetting would likely indicate that it was edited wrongly to the point where it was invalid JSON.
{
"items": {},
"kits": {},
"commands": {
"Portable Boat": {
"description": "Use hammer to pickup",
"iconName": null,
"commands": [
"portablevehicles.give $player.id boat"
],
"displayName": "Portable Boat",
"cost": 10,
"cooldown": 0
},
"Portable Horse": {
"description": "Use hammer to pickup",
"iconName": null,
"commands": [
"portablevehicles.give $player.id horse"
],
"displayName": "Portable Horse",
"cost": 5,
"cooldown": 0
},
"Portable Balloon": {
"description": "Use hammer to pickup",
"iconName": null,
"commands": [
"portablevehicles.give $player.id balloon"
],
"displayName": "Portable Balloon",
"cost": 20,
"cooldown": 0
},
"Portable RHIB": {
"description": "Use hammer to pickup",
"iconName": null,
"commands": [
"portablevehicles.give $player.id rhib"
],
"displayName": "Portable RHIB",
"cost": 20,
"cooldown": 0
},
"Portable Minicopter": {
"description": "Use hammer to pickup",
"iconName": null,
"commands": [
"portablevehicles.give $player.id minicopter"
],
"displayName": "Portable Minicopter",
"cost": 30,
"cooldown": 0
},
"Portable Car": {
"description": "Use hammer to pickup",
"iconName": null,
"commands": [
"portablevehicles.give $player.id car"
],
"displayName": "Portable Car",
"cost": 30,
"cooldown": 0
}

Unloaded plugin ServerRewards v0.4.67 by k1lly0u

[ServerRewards] No reward data found! Creating a new data file

[ServerRewards] All UI elements have been successfully generated!

Loaded plugin ServerRewards v0.4.67 by k1lly0u

Everytime this error.

5c2d88ae4ea06.jpg Wulf

I dont understand, what i have to change then?

Try pasting your data in that site and seeing what it says. It should tell you what is wrong with the format.
5c2d88ae4ea06.jpg Wulf
Try pasting your data in that site and seeing what it says. It should tell you what is wrong with the format.
Error: Parse error on line 64:
...			"cooldown": 0		}
----------------------^
Expecting '}', ',', got 'EOF'

The last line, but what I have to add?

According to that, it looks like your data file is incomplete (missing parts) or is not closing properly with the right symbols.
That config is incomplete, not the full file.
5c2d88ae4ea06.jpg Wulf
That config is incomplete, not the full file.

First  I add the command: rewards add command "Copter" "portablevehicles.give $ player.id minicopter" "30"
Then I reload the plugin and it appears in the store, without appearing the name or anything.
Then I unload the plugin and change the description, save and do oxide.reload ServerRewards, and then I get the errors.

Merged post

I have uninstalled and installed it, also image library and the same thing always happens to me.

Merged post

Thanks anyway, I think I'll leave it, it's already frustrating me this I've tried everything
Surely it makes nonsense but I have been testing for several hours with different commands and always the same.

Merged post

Im sure is only a , or a } but idk where

Merged post

I hope someone find what im doing wrong.
5c2d88ae4ea06.jpg Wulf
That config is incomplete, not the full file.

solved.

Locked automatically