Could anyone help me with this problem? Its just completely not working and i don't know what i am doining wrong... Here's my code.
I changed the code a bit to make a bit more clear, so basicly i can claim the reward unlimited amount of times and the cooldown does not work..
code_language.skript:
if arg-1 is "claim":
if {server.waited.%uuid of player%} is set:
if {server.waited.%uuid of player%} is more than 24 hours:
set {server.waited.%uuid of player%} to now
make console execute command "/tokens give %player% 15"
make console execute command "/crate give v Ice 1 %player%"
message "{@prefix} {@claimed_dailyreward}"
else:
message "{@prefix} {@cooldowntime}"
stop
else:
set {server.waited.%uuid of player%} to difference between {server.delivery.%player%.lastused} and now
set {server.waited.%player%} to now
make console execute command "/tokens give %player% 15"
make console execute command "/crate give v Ice 1 %player%"
message "{@prefix} {@claimed_dailyreward}"
Last edited: