Skip to content

Commit

Permalink
Update NPCCommands.java
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jul 30, 2015
1 parent 1e3b023 commit b0dabb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/commands/NPCCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ public void run(NPC npc) throws CommandException {
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);
Expand Down

0 comments on commit b0dabb4

Please sign in to comment.