Jump to content

dupe skript


veiloftears

Recommended Posts

hey guys i have been working on a dupe skript and i just wanna know if it works, also i want to know how to make the xlifedupe group thingy i cant do it lol im struggling i have only been coding for 3 months:

 

command /dupe:
    trigger:
        if player's tool is not air:
            if {blockeditems:netherite_igont, bedrock:} 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:netherite_igont, bedrock:} 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:netherite_igont, bedrock:}
                    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:netherite_igont, bedrock:} contains player's tool:
                    send "&aSuccess: Removed &6%player's tool%&a from blocked items!"
                    remove player's tool from {blockeditems:netherite_igont, bedrock:*}
                else:
                    send "&cError: You cannot dupe items that are blacklisted."

 

Link to comment
Share on other sites

  • 2 weeks later...

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...