can anyone add a cooldown to my skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

3dpixelartman

Member
Jun 23, 2021
23
0
1
24
Code:
options:
    blacklist: command block and bedrock and repeating command block and debug stick and player head and wither skeleton skull and barrier and nether star
    prefix: &dMinidupe

command /dupe [<number>]:
    trigger:
        if {@blacklist} contains type of tool:
            send "{@prefix} &3| &3You cannot dupe that item!"
            stop
        else:
            if arg-1 is not set:
                add player's tool to player's inventory
                stop
            else:
                if arg-1 is less than 2:
                    add player's tool to player's inventory
                    stop
                else:
                    if arg-1 is more than 5:
                        loop 6 times:
                            add player's tool to player's inventory
                        stop
                    else:
                        loop arg-1 times:
                            add player's tool to player's inventory
need a 5s cooldown added with a cooldown bypass of vip.0 can anyone help
 
There You Go You Have a 5 Second Cooldown For Your /dupe Command
Code:
options:
    blacklist: command block and bedrock and repeating command block and debug stick and player head and wither skeleton skull and barrier and nether star
    prefix: &dMinidupe
 
command /dupe [<number>]:
    cooldown: 5 seconds
    cooldown message: You need to wait %remaining time% to do this again
    cooldown bypass: vip.0
    trigger:
        if {@blacklist} contains type of tool:
            send "{@prefix} &3| &3You cannot dupe that item!"
            stop
        else:
            if arg-1 is not set:
                add player's tool to player's inventory
                stop
            else:
                if arg-1 is less than 2:
                    add player's tool to player's inventory
                    stop
                else:
                    if arg-1 is more than 5:
                        loop 6 times:
                            add player's tool to player's inventory
                        stop
                    else:
                        loop arg-1 times:
                            add player's tool to player's inventory
 
There You Go You Have a 5 Second Cooldown For Your /dupe Command
Code:
options:
    blacklist: command block and bedrock and repeating command block and debug stick and player head and wither skeleton skull and barrier and nether star
    prefix: &dMinidupe
 
command /dupe [<number>]:
    cooldown: 5 seconds
    cooldown message: You need to wait %remaining time% to do this again
    cooldown bypass: vip.0
    trigger:
        if {@blacklist} contains type of tool:
            send "{@prefix} &3| &3You cannot dupe that item!"
            stop
        else:
            if arg-1 is not set:
                add player's tool to player's inventory
                stop
            else:
                if arg-1 is less than 2:
                    add player's tool to player's inventory
                    stop
                else:
                    if arg-1 is more than 5:
                        loop 6 times:
                            add player's tool to player's inventory
                        stop
                    else:
                        loop arg-1 times:
                            add player's tool to player's inventory
Thanks!
 
Status
Not open for further replies.