#/daily command

1 messages · Page 1 of 1 (latest)

turbid terrace
#
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

#

yw

bright beacon
#

you can use this
it's just cancel cooldown or delete {your::var}

#

the original error is because the variable was already set to somethingd

turbid terrace
#

That's right, I forgot to clarify that... thank you very much Sovde. blobagree

bright beacon
#

you only have one cooldown per command

#

so there's no confusion there

#

but you're cancelling in one command

#

ah i see

#

yes you would use delete var in that case