Dupe command

  • 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!

Status
Not open for further replies.
Dec 6, 2019
2
0
0
25
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.
 
Thank you so much!
[doublepost=1575957979,1575905378][/doublepost]Hey Goose it's been two days just checking to see how the skript command is going.
 
Sorry for taking a while, the skript isn't working as expected, but I'll fix it
[doublepost=1575986993,1575986883][/doublepost]Momentary, until I give you a full featured dupe command you can use this:


Code:
command /dupe:
    trigger:
        give player's tool to player
 
Code:
Variables:
  {dupedelay.%player%} = true

command /dupe [<text>]:  #delay is 30 seconds you can change it from line 19
  trigger:
    if arg 1 is not set:
      if player has permission "dupedelay.bypass":
        if {blockeditems::*} contains player's tool:
          send "&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 "&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!"
 
Last edited:
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
 
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
great way not only to necropost but to just copy and paste the previous person's code
 
  • Like
Reactions: lotzy
Code:
Variables:
  {dupedelay.%player%} = true

command /dupe [<text>]:  #delay is 30 seconds you can change it from line 19
  trigger:
    if arg 1 is not set:
      if player has permission "dupedelay.bypass":
        if {blockeditems::*} contains player's tool:
          send "&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 "&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!"
Code:
command dupe [<text>]:
    trigger:
        if player's tool is not air:
            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:
            send action bar "&cYou can't dupe air." to player
        if player has permission "xlifedupe.command.dupe.block":
            if arg-1 is "block":
                if {blockeditems::*} doesn't contain player's tool:
                    if player's tool is not air:
                        send "&aSuccess: Added &6%player's tool%&a to blocked items!"
                        add player's tool to {blockeditems::*}
                    else:
                        send "&cError: This item cannot be in blocked items"
                else:
                    send "&cError: This item is already in blocked items"
        if player has permission "xlifedupe.command.dupe.remove":
            if arg-1 is "remove":
                if {blockeditems::*} contains player's tool:
                    send "&aSuccess: Removed &6%player's tool%&a from blocked items!"
                    remove player's tool from {blockeditems::*}
                else:
                    send "&cError: This item isn't exist in blocked items"
this is simple and easy to use, shorter
 
Status
Not open for further replies.