#Hey, is someone able to help me make a cooldown timer for every kit in this script?

1 messages · Page 1 of 1 (latest)

severe yarrow
#
    noperm: "&c&lHey!&7&lYou don't have permission to do this!&f"
    valid: "&c&l&oNo valid kit!&f"

command /givekit <string>:
    executable by: players
    trigger:
        if arg-1 is "starter":
            if player has permission "kit.starter":
                giveKit(player, "starter")
            else:
                send {@noperm} to player
        if arg-1 is "lapis":
            if player has permission "kit.lapis":
                giveKit(player, "lapis")
            else:
                send {@noperm} to player
        if arg-1 is "diamond":
            if player has permission "kit.diamond":
                giveKit(player, "diamond")
        if arg-1 is "immortal":
            if player has permission "kit.immortal":
                giveKit(player, "immortal")
        if arg-1 is "overlord":
            if player has permission "kit.overlord":
                giveKit(player, "overlord")
            else:
                send {@noperm} to player
            stop```
#

Make the cooldown for every kit 24 hours besides starter kit. Make starter kit every 30 minutes

agile marsh
#

No this isn't charity do it yourself

spark drum
primal lodge
severe yarrow
#

Im a beginner..

#

@spark drum

spark drum
#

Every time you do the kit function

#

Add

#

Set {kit::name of kit::%player's uuid%} to now

#

And then at the very beginning of all of them

#

Check

severe yarrow
#

Are you able to do it for me so i can learn from the corrected code?

severe yarrow
#

@spark drum

misty sundial
#

Rand0m explain a little bit more in detail

spark drum
#

You see where you type giveKit(args)

#

You're giving the specific kit

#

What you want to do if define a variable per name of kit per player

#

To check for each one if it's ready for the player

#

So you set a time when they claim