command /daily [<string>]:
trigger:
if arg-1 is "reset":
if player doesn't have permission "daily.reset":
send "&cNope, no permission." to player
stop
delete {daily::%player's uuid%}
send "&aDone... &7(reset)" to player
else if {daily::%player's uuid%} > now:
send "&cNope, wait %difference between {daily::%player's uuid%} and now%." to player
else:
set {daily::%player's uuid%} to 12 hours from now
make console execute "/crates key give %player% dayli 1"
send "&aDone..." to player
try with this
