From fbfd9db7ce37000ee17089d6dd2c1d0cd0bedca1 Mon Sep 17 00:00:00 2001 From: fullwall Date: Thu, 30 Jul 2015 10:51:45 +0800 Subject: [PATCH] Update NPCCommands.java --- src/main/java/net/citizensnpcs/commands/NPCCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/src/main/java/net/citizensnpcs/commands/NPCCommands.java index c4c28b140..cf7548d58 100644 --- a/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -1159,7 +1159,7 @@ public class NPCCommands { public void rename(CommandContext args, CommandSender sender, NPC npc) { String oldName = npc.getName(); String newName = Colorizer.parseColors(args.getJoinedStrings(1)); - int nameLength = npc.getTrait(MobType.class).getType() == EntityType.PLAYER ? 16 : 64; + int nameLength = npc.getTrait(MobType.class).getType() == EntityType.PLAYER ? 46 : 64; if (newName.length() > nameLength) { Messaging.sendErrorTr(sender, Messages.NPC_NAME_TOO_LONG); newName = newName.substring(0, nameLength);