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.
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.