Trim name length to 16 chars not 15

This commit is contained in:
fullwall 2013-08-14 22:53:00 +08:00
parent f970e2b5ac
commit 327d7f1ff4
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ public class NPCCommands {
String name = Colorizer.parseColors(args.getJoinedStrings(1));
if (name.length() > 16) {
Messaging.sendErrorTr(sender, Messages.NPC_NAME_TOO_LONG);
name = name.substring(0, 15);
name = name.substring(0, 16);
}
if (name.length() <= 0)
throw new CommandException();