Jump to content

NotSlap

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by NotSlap

  1. Is there a way to block blacklisted items in a shulker? This is the code I have now (From another post cause I can't code lol)

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

×
×
  • Create New...