Skip to content
home/templates/kit system (/kit) with cooldowns
kitsBeginnernewmc 1.20.x – 1.21.x32 lines

kit system (/kit) with cooldowns

/kit starter, /kit pvp, /kit miner — each kit has its own cooldown. cooldowns tracked per player across reloads.

vanilla Skriptno addons required.
kit-command.sk32 lines
command /kit <text>:
    trigger:
        if arg-1 is "starter":
            if difference between {kit.starter.%uuid of player%} and now is less than 24 hours:
                send "&cStarter kit available again in &e%difference between {kit.starter.%uuid of player%} and now% &cless than 24 hours." to player
                stop
            set {kit.starter.%uuid of player%} to now
            give 1 stone sword to player
            give 1 stone pickaxe to player
            give 16 cooked beef to player
            send "&aReceived starter kit!" to player
        else if arg-1 is "pvp":
            if difference between {kit.pvp.%uuid of player%} and now is less than 1 hour:
                send "&cPvP kit on cooldown." to player
                stop
            set {kit.pvp.%uuid of player%} to now
            give 1 diamond sword of sharpness 2 to player
            give 1 diamond chestplate of protection 2 to player
            give 32 golden apple to player
            send "&aReceived PvP kit!" to player
        else if arg-1 is "miner":
            if difference between {kit.miner.%uuid of player%} and now is less than 30 minutes:
                send "&cMiner kit on cooldown." to player
                stop
            set {kit.miner.%uuid of player%} to now
            give 1 iron pickaxe of efficiency 2 to player
            give 64 torch to player
            give 16 bread to player
            send "&aReceived miner kit!" to player
        else:
            send "&cAvailable kits: &fstarter, pvp, miner" to player

get it running

kit-command.sk · 32 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    kit-command.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/kit-command.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload kit-command
that's it — your script is live. hop in-game to try it.

comments