4d1d5664b76be13b5f9dd97ea1469eb42e41fe4f
NPCLib – Basic non-player character library.

This is an API made specifically for spigot servers (Minecraft). Current versions supported: 1.8 - 1.12.
Donate
Alternatively, you can help the project by starring the repository or telling others about NPCLib 😄
Usage
// First we define our (global) library variable.
// This is usually done in the onEnable method.
NPCLib lib = new NPCLib(plugin);
// Creating an NPC.
NPC npc = lib.createNPC(skin, lines);
// The generate the packets for the NPC.
npc.create(location);
// Then *finally* you can show/hide it to/from players.
npc.show(player);
npc.hide(player);
// If you don't use the NPC anymore, destroy the NPC accordingly.
npc.destroy();
Usable events: NPCSpawnEvent, NPCDestroyEvent and NPCInteractEvent.
Copyright
Copyright (c) Jitse Boonstra 2018 All rights reserved.
Languages
Java
100%