From c368f5ae2518b75a310ffda3a3096bdf1f7b2b46 Mon Sep 17 00:00:00 2001 From: termxz <42815260+termxz@users.noreply.github.com> Date: Wed, 7 Aug 2019 08:47:21 -0700 Subject: [PATCH] Missing setSkin method on Example 3 --- examples/example-3.java | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/example-3.java b/examples/example-3.java index 679ede8..1f3a5e7 100644 --- a/examples/example-3.java +++ b/examples/example-3.java @@ -38,6 +38,7 @@ public class NPCLibTest extends JavaPlugin { MineSkinFetcher.fetchSkinFromIdAsync(skinId, skin -> { NPC npc = npclib.createNPC(Arrays.asList(ChatColor.WHITE + "Hi there (#3)"); npc.setLocation(event.getPlayer().getLocation()); + npc.setSkin(skin); ids.add(npc.getId()); npc.create(); // The SkinFetcher fetches the skin async, you can only show the NPC to the player sync.