/TruenoNPC

NPC Api for Bukkit/Spigot 1.8-1.12

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

TruenoNPC

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:

Usage

  1. Clone the repo and integrate it in your proyect.
  2. Remove nms classes that you don't be using from .nms package and TruenoNPCApi (If your plugin is not compatible 1.8 - 1.12).
  3. 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

Donate me

If you like my work, please, consider donating

Contact me