Browse Source

Missing setSkin method on Example 3

master
termxz 3 years ago
committed by GitHub
parent
commit
c368f5ae25
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      examples/example-3.java

+ 1
- 0
examples/example-3.java View File

@ -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.


Loading…
Cancel
Save