Skript help command Cooldown reset

Status
This thread has been locked.

Apocalypse

Feedback score
0
Posts
1
Reactions
0
Resources
0
Hello, I am trying to make a command cooldown reset for my skript

command /raid <player>:
usage: &7/raid &a[Player's nick]
permission: raid.access
executable by: players
trigger:
set {_waited} to difference between {raid.%player%.lastused} and now
if {_waited} is less than a hour:
message "&7You need to wait &a%difference between a hour and {_waited}% &7before you can raid again!"
stop

broadcast "&7Player &a%player% &7is now raiding &a%argument 1%"
wait 1 minute
broadcast "&7Player &a%player% &7finished raid"

set {raid.%player%.lastused} to now

command /raid_reset <player>:
usage: &7/raid reset &a[Nazwa Gracza]
permission: raid.reset
executable by: players
trigger:

I have trouble in figuring out how to reset it.
Could someone help me with creating this reset skript?
 
Status
This thread has been locked.
Top