1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

need help adding cooldowns for rank perms

Discussion in 'Requests' started by 3dpixelartman, Feb 15, 2022.

  1. 3dpixelartman

    3dpixelartman Member

    Joined:
    Jun 23, 2021
    Messages:
    23
    Likes Received:
    0
    Hi I need help adding cooldowns for 3 perms
    dupe.5 (5s cooldown)
    dupe.2 (2s cooldown)
    dupe.0 (no cooldown)
    can anyone help me
    Code (Text):
    1. options:
    2.     blacklist: command block and bedrock and repeating command block and debug stick and player head and wither skeleton skull
    3.      prefix: &dSERVERNAMEHERE
    4.  
    5. command /dupe [<number>]:
    6.     trigger:
    7.         if {@blacklist} contains type of tool:
    8.             send "{@prefix} &3| &3You cannot dupe that item!"
    9.             stop
    10.         else:
    11.             if arg-1 is not set:
    12.                 add player's tool to player's inventory
    13.                 stop
    14.             else:
    15.                 if arg-1 is less than 2:
    16.                     add player's tool to player's inventory
    17.                     stop
    18.                 else:
    19.                     if arg-1 is more than 5:
    20.                         loop 6 times:
    21.                             add player's tool to player's inventory
    22.                         stop
    23.                     else:
    24.                         loop arg-1 times:
    25.                             add player's tool to player's inventory
     

Share This Page

Loading...