From 7739e5df2190781e73f8396eb145f7b1a770dc58 Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 30 Nov 2014 14:19:40 +0800 Subject: [PATCH] Fix tablist --- src/main/java/net/citizensnpcs/commands/NPCCommands.java | 2 +- src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/src/main/java/net/citizensnpcs/commands/NPCCommands.java index 58bfe4ccd..08a6f66fc 100644 --- a/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -296,7 +296,7 @@ public class NPCCommands { EntityType type = EntityType.PLAYER; if (args.hasValueFlag("type")) { - String inputType = args.getFlag("type").toUpperCase(); + String inputType = args.getFlag("type"); type = Util.matchEntityType(inputType); if (type == null) { throw new CommandException(Messaging.tr(Messages.NPC_CREATE_INVALID_MOBTYPE, inputType)); diff --git a/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java b/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java index c47779bee..d43c64c8d 100644 --- a/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java +++ b/src/main/java/net/citizensnpcs/npc/entity/EntityHumanNPC.java @@ -299,7 +299,7 @@ public class EntityHumanNPC extends EntityPlayer implements NPCHolder { break; } } - // NMS.sendToOnline(getListPacket(getBukkitEntity(), true)); + NMS.sendToOnline(getListPacket(getBukkitEntity(), true)); if (otherOnline != null) { NMS.sendToOnline(getListPacket(otherOnline, false)); }