From c2c21cdf2aa2469da34a38ce86a0fb00092db189 Mon Sep 17 00:00:00 2001 From: JitseB Date: Fri, 13 Apr 2018 19:03:44 +0200 Subject: [PATCH] Clarified the README. --- README.md | 11 ++++++----- src/net/jitse/npclib/plugin/NPCLibPlugin.java | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 48468e2..5824ae5 100644 --- a/README.md +++ b/README.md @@ -16,17 +16,18 @@ Current versions supported: 1.8 - 1.12. ``` ```Java - // If you want to spawn an NPC, you can generate it like so: - NPC npc = lib.createNPC(skin, autoHideDistance, lines); - // Then you need to generate the packets for the NPC like so: + // 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 like so: + // 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 it accordingly: + // If you don't use the NPC anymore, destroy the NPC accordingly. npc.destroy(); ``` diff --git a/src/net/jitse/npclib/plugin/NPCLibPlugin.java b/src/net/jitse/npclib/plugin/NPCLibPlugin.java index 9a2ce3c..b008fb8 100644 --- a/src/net/jitse/npclib/plugin/NPCLibPlugin.java +++ b/src/net/jitse/npclib/plugin/NPCLibPlugin.java @@ -49,7 +49,7 @@ public class NPCLibPlugin extends JavaPlugin implements Listener { } MineSkinFetcher.fetchSkinFromIdAsync(168841, skin -> { - NPC npc = npcLib.createNPC(skin, 5, Arrays.asList( + NPC npc = npcLib.createNPC(skin, Arrays.asList( ChatColor.BOLD + "NPC Library", "", "Create your own", "non-player characters", "with the simplistic", "API of NPCLib!"