Hello, I am trying to make a cooldown for my skript.
command /claim:
description: Claim your welcome back gift
permission: minequest.lookup
trigger:
execute command "give %player% diamond 2"
if {cooldown.%player%} isn't set:
set {cooldown.%player%} to true
message "&eYou have claimed your gift!"
wait 30 seconds
clear {cooldown.%player%}
else:
message "&cYou can only use this command once!"
is the skript.
The players can type /claim and the cooldown won't count. What am I doing wrong? It only saends the "You can only use this command once!" message, but they still get the 2x diamonds.
command /claim:
description: Claim your welcome back gift
permission: minequest.lookup
trigger:
execute command "give %player% diamond 2"
if {cooldown.%player%} isn't set:
set {cooldown.%player%} to true
message "&eYou have claimed your gift!"
wait 30 seconds
clear {cooldown.%player%}
else:
message "&cYou can only use this command once!"
is the skript.
The players can type /claim and the cooldown won't count. What am I doing wrong? It only saends the "You can only use this command once!" message, but they still get the 2x diamonds.
