not allow /dupe for enchanted items

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 18, 2020
2
1
0
25
i have the /dupe skript which dupes items how do you make it so players cant dupe enchanted or lored items
heres what i have so far

command /duplicate:
trigger:
give player's tool to player

i tried to add a if and else but i dont know how to put: if players tool is enchanted : cancel event
 
Last edited:
With this, you cannot dupe enchanted items, lored items or named items
Code:
command dupe:
    trigger:
        if player's tool is enchanted:
            send "&cYou cannot dupe enchanted items!"
        else if player's tool's lore is set:
            send "&cYou cannot dupe items with lore!"
        else if player's tool's name is set:
            send "&cYou cannot dupe named items!"
        else:
            give player's tool to player
 
Status
Not open for further replies.