mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-30 14:43:54 +01:00
Trim name length to 16 chars not 15
This commit is contained in:
parent
c4703e1f62
commit
bc5704128a
@ -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
Block a user