Trim name length to 16 chars not 15
This commit is contained in:
parent
f970e2b5ac
commit
327d7f1ff4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue