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

Prevent Usage of Name tags

Discussion in 'Skript' started by McAcrylic, Nov 10, 2019.

  1. McAcrylic

    McAcrylic Well-Known Member

    Joined:
    Oct 21, 2017
    Messages:
    58
    Likes Received:
    0
    How do I prevent people from using name tags to rename mobs?

    Or the usage of something like this:
    [​IMG]

    To this:
    [​IMG]

    Note:
    I have tried the following:
    - Canceling right click event
    - Canceling right click event on living entity and entity
     
  2. Juvius

    Juvius Member

    Joined:
    Oct 28, 2019
    Messages:
    7
    Likes Received:
    0
    Code (Text):
    1. on right-click:
    2.     if player is holding a name tag:
    3.         if player's target is set:
    4.             if player's target is a living entity:
    5.                 send "&cYou can't use Name Tags to rename mobs." to player
    6.                 cancel event
    I tested it and it works.
    Next time maybe include your server's version, Skript version you're using, etc.
     
    • Agree Agree x 1
  3. McAcrylic

    McAcrylic Well-Known Member

    Joined:
    Oct 21, 2017
    Messages:
    58
    Likes Received:
    0
    Then what is YOUR SKRIPT VERSION and SERCER VERSION?
     
Loading...