Jump to content

Blacklist shulkers for /dupe? please help i've been trying to find how to do this for forever now!


hightier2

Recommended Posts

This is the skript i already have (this is not mine i got it from another person :)) Please help me make it so when i blacklist an item it blacklists it in shulkers aswell I also need it so they cant just make it lower durability then dupe it please and thank you!

 

Variables:
  {dupedelay.%player%} = true
 
command /dupe [<text>]:  #delay is 0 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 0 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:

Edited by hightier2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...