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.

Dupe command

Discussion in 'Requests' started by Allaboutduhmoney, Dec 7, 2019.

  1. Allaboutduhmoney

    Joined:
    Dec 6, 2019
    Messages:
    2
    Likes Received:
    0
    Ok so I need a dupe command that has a cooldown, cooldown bypass, permissions, and items that are blocked. I would like a command to add items to this blocked list and a command to unblock items from this blocked list.
     
  2. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    391
    Likes Received:
    24
    Sure, I'll work on one for you. Give me a bit.
     
  3. Allaboutduhmoney

    Joined:
    Dec 6, 2019
    Messages:
    2
    Likes Received:
    0
    Thank you so much!
    --- Double Post Merged, Dec 10, 2019, Original Post Date: Dec 9, 2019 ---
    Hey Goose it's been two days just checking to see how the skript command is going.
     
  4. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    391
    Likes Received:
    24
    Sorry for taking a while, the skript isn't working as expected, but I'll fix it
    --- Double Post Merged, Dec 10, 2019, Original Post Date: Dec 10, 2019 ---
    Momentary, until I give you a full featured dupe command you can use this:


    Code (Text):
    1. command /dupe:
    2.     trigger:
    3.         give player's tool to player
     
  5. Haruomi

    Haruomi Member

    Joined:
    Dec 10, 2019
    Messages:
    5
    Likes Received:
    0
    Code (Text):
    1. Variables:
    2.   {dupedelay.%player%} = true
    3.  
    4. command /dupe [<text>]:  #delay is 30 seconds you can change it from line 19
    5.   trigger:
    6.     if arg 1 is not set:
    7.       if player has permission "dupedelay.bypass":
    8.         if {blockeditems::*} contains player's tool:
    9.           send "&cYou can't dupe this item!" to player    
    10.         else:
    11.           give player's tool to player  
    12.       else:
    13.         if {dupedelay.%player%} is true:
    14.           if {blockeditems::*} contains player's tool:
    15.             send "&cYou can't dupe this item!" to player
    16.           else:
    17.             give player's tool to player
    18.             set {dupedelay.%player%} to false
    19.             wait 30 seconds # change the delay
    20.             set {dupedelay.%player%} to true    
    21.         else:
    22.           send "&cYou have to wait before using that command again!" to player
    23.     if arg 1 is "add" or "block":
    24.       if player has permission "dupe.add" or "dupe.block":
    25.         if {blockeditems::*} contains player's tool:
    26.           send "&bThis item is already blocked." to player
    27.         else:
    28.           add player's tool to {blockeditems::*}
    29.           send "&aSucesfully added &e%player's tool% &afrom blocked items." to player
    30.       else:
    31.         send "&cYou don't have permission for that command!"
    32.  
    33.     if arg 1 is "remove" or "unblock":      
    34.       if player has permission "dupe.remove" or "dupe.unblock":
    35.         if {blockeditems::*} contains player's tool:
    36.           remove player's tool from {blockeditems::*}
    37.           send "&cSucesfully removed &e%player's tool% &cfrom blocked items." to player
    38.         else:
    39.           send "&bThis item is not blocked." to player      
    40.       else:
    41.         send "&cYou don't have permission for that command!"
    42.  
     
    #5 Haruomi, Dec 11, 2019
    Last edited: Dec 12, 2019
Loading...