Adding a cooldown to a command?
Hi,

Is it possible to add a cooldown to a command? even better a cooldown for a player?

I have a personal heli command but I would like each person to have approx a 1hr cooldown so they cannot spam the command, this is how I have it set.

"commands": {
"Attack Heli": {
"displayName": "Personal Heli",
"description": "Call personal attack heli to your position",
"iconName": null,
"commands": [
"callheli $player.name",
"announce.announce <color=red>$player.name called in a personal heli. Please do not attack unless you have permission</color>"
],
"cost": 2000
},

Thanks.
I would like to know this as well!
Curious if this was changed and the text on the website is still the same as an older version since it mentions how to /rewards edit and add a cooldown. But if so would there still be a way to add a cooldown back to it and as mentioned to players to avoid spam, either as a command or so?
is that from the gui shop you buy the command from if so you can add a timer to any command in their.
The command above is in ServerRewards - reward_data.json file. the announce command just makes the message pop up through gui I think, that someone ordered it to give them a warning. A friend set it up but I think thats how it works.
not sure about serverrewards sorry 
So does this work yet?
So did anyone make this work? I can make the chat say command works (but it will still say Server: as if the server has said it) but I cannot make other commands to work

Im trying to make people be able to spawn a car from the shop

},
"kits": {},
"commands": {
"SpawnCar": {
"description": "BETA/WIP/MIGHT NOT WORK (spawns a car in front of you /spawncar)",
"iconName": null,
"commands": [
"spawncar $player.name!"
],
"displayName": null,
"cost": 10,
"cooldown": 0
}
}
}

However it doesnt seem to be doing anything. I obviously also need to edit the price and cooldown but this is for testing first
I have tried several things and cannot get it to work, I cannot get it to work with commandratelimiter plugin too but that seems to effect everyone and not just the person using the command.
So basicly the commands dont work for anyone?
Either edit the cooldown into a existing item/kit/command using the chat/console commands provided, or edit the data file

Console:
rewards edit item <ID> cooldown 600
rewards edit kit <ID> cooldown 600
rewards edit command <ID> cooldown 600

All of which add a 600 second cooldown to the selected item
In response to k1lly0u ():
Either edit the cooldown into a existing item/kit/command using the chat/console commands provided,...
The thing is when I do "rewards add command spawncar cooldown 600 nothing happens when they purchase the spawncar command. Im using carcommanderlite