Entities with ChatColor in their names

Discussion in 'Plugin Development' started by Shxke, May 5, 2019.

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

    Shxke

    Hey there! I've recently been working on an NPC system, and it works perfectly with spawning the entity, the custom name, and everything. But when I tried to create an interact event for the entity to open a gui, it wont work. I've investigated and found that it has to do with the name. I've tested the gui system with a command, and even tested the interact with entities that have no name, but tested if they were villagers. Basically, can someone please tell me if you can find entities that have chatcolor in their names by finding them by name.
     
  2. Offline

    DerDonut

    event.getRightClicked().getCustomName() works just fine for me, even with colors. Please post your code and tell me which mc version you use if you're still stuck
     
Thread Status:
Not open for further replies.

Share This Page