API for create NPCs without nametags in Spigot/Bukkit. It's compatible with 1.8 to 1.12 versions
Please if you are going to use this api, give me credits c:
- Clone the repo and integrate it in your proyect.
- Remove nms classes that you don't be using from .nms package and TruenoNPCApi (If your plugin is not compatible 1.8 - 1.12).
- Create your npcs!
//First create the skin
TruenoNPCSkin skin = TruenoNPCSkinBuilder.fromUsername(this.plugin, p.getName());
TruenoNPCSkin skin = TruenoNPCSkinBuilder.fromUUID(this.plugin, p.getUniqueId().toString());
TruenoNPCSkin skin = TruenoNPCSkinBuilder.fromMineskin(this.plugin, 131234);
//Now create the NPC ussing the skin
TruenoNPC npc = TruenoNPCApi.createNPC(main.getPlugin(), p.getLocation(), skin);
Once you create the npc, you don't have to worry about more, it will show new players, will respawn when it's necessary, etc. There are three events to listen: on spawn, on despawn and on interact.
- Thanks to aadnk for TinyProtocol: https://github.com/aadnk/ProtocolLib/tree/master/modules/TinyProtocol
- Thanks to Yonas for McAPI.de: https://mcapi.de/
If you like my work, please, consider donating