Prevent Usage of Name tags

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

McAcrylic

Active Member
Oct 21, 2017
59
0
0
25
How do I prevent people from using name tags to rename mobs?

Or the usage of something like this:
28ba74ddd6ba62ec4bb3fb64537f6475.png


To this:
bafe835ba060dd98d917e6ce6ec7c5cb.png


Note:
I have tried the following:
- Canceling right click event
- Canceling right click event on living entity and entity
 
Code:
on right-click:
    if player is holding a name tag:
        if player's target is set:
            if player's target is a living entity:
                send "&cYou can't use Name Tags to rename mobs." to player
                cancel event
I tested it and it works.
Next time maybe include your server's version, Skript version you're using, etc.
 
Code:
on right-click:
    if player is holding a name tag:
        if player's target is set:
            if player's target is a living entity:
                send "&cYou can't use Name Tags to rename mobs." to player
                cancel event
I tested it and it works.
Next time maybe include your server's version, Skript version you're using, etc.
Then what is YOUR SKRIPT VERSION and SERCER VERSION?
 
Status
Not open for further replies.