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

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    430
    Likes Received:
    30
    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

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    430
    Likes Received:
    30
    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 New 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
  6. HiImMaro

    HiImMaro Member

    Joined:
    Apr 18, 2023
    Messages:
    1
    Likes Received:
    0
    variables:
    {dupedelay.%player%} = true

    command /dupe [<text>]: #delay is 30 seconds you can change it from line 19
    cooldown: 1.5 day
    permission: test
    cooldown message: &cYou need to wait &61.5 &cday to execute this command again.
    cooldown bypass: xfastboxx.permission.bypass.dupe
    trigger:
    if arg 1 is not set:
    if player has permission "dupedelay.bypass":
    if {blockeditems::*} contains player's tool:
    send action bar "&cYou can't dupe this item!" to player
    else:
    give player's tool to player
    else:
    if {dupedelay.%player%} is true:
    if {blockeditems::*} contains player's tool:
    send action bar "&cYou can't dupe this item!" to player
    else:
    give player's tool to player
    set {dupedelay.%player%} to false
    wait 30 seconds # change the delay
    set {dupedelay.%player%} to true
    else:
    send "&cYou have to wait before using that command again!" to player
    if arg 1 is "add" or "block":
    if player has permission "dupe.add" or "dupe.block":
    if {blockeditems::*} contains player's tool:
    send "&bThis item is already blocked." to player
    else:
    add player's tool to {blockeditems::*}
    send "&aSucesfully added &e%player's tool% &afrom blocked items." to player
    else:
    send "&cYou don't have permission for that command!"

    if arg 1 is "remove" or "unblock":
    if player has permission "dupe.remove" or "dupe.unblock":
    if {blockeditems::*} contains player's tool:
    remove player's tool from {blockeditems::*}
    send "&cSucesfully removed &e%player's tool% &cfrom blocked items." to player
    else:
    send "&bThis item is not blocked." to player
    else:
    send "&cYou don't have permission for that command!"


    Sorry for replying on old thread!
    please do not report/warn me
     
  7. TBX3D

    TBX3D Member

    Joined:
    May 6, 2023
    Messages:
    1
    Likes Received:
    1
    great way not only to necropost but to just copy and paste the previous person's code
     
    lotzy likes this.
  8. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    185
    Likes Received:
    28
    ahahaahah
     
    TBX3D likes this.

Share This Page

Loading...