Weefle / TruenoNPC

NPC Api for Bukkit/Spigot 1.8-1.12

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

NPC Api for Bukkit/Spigot 1.8-1.12

License:GNU General Public License v3.0


Languages

Language:Java 100.0%