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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

not allow /dupe for enchanted items

Discussion in 'Skript' started by chriscrosscrew, Feb 18, 2020.

Thread Status:
Not open for further replies.
  1. chriscrosscrew

    Joined:
    Feb 18, 2020
    Messages:
    2
    Likes Received:
    1
    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
     
    #1 chriscrosscrew, Feb 18, 2020
    Last edited: Mar 15, 2020
  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    430
    Likes Received:
    30
    With this, you cannot dupe enchanted items, lored items or named items
    Code (Text):
    1. command dupe:
    2.     trigger:
    3.         if player's tool is enchanted:
    4.             send "&cYou cannot dupe enchanted items!"
    5.         else if player's tool's lore is set:
    6.             send "&cYou cannot dupe items with lore!"
    7.         else if player's tool's name is set:
    8.             send "&cYou cannot dupe named items!"
    9.         else:
    10.             give player's tool to player
     
  3. chriscrosscrew

    Joined:
    Feb 18, 2020
    Messages:
    2
    Likes Received:
    1
  4. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    430
    Likes Received:
    30
    Make sure to post this as solved
     
Thread Status:
Not open for further replies.

Share This Page

Loading...