mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-12 11:21:05 +01:00
Merge branch 'master' of github.com:CitizensDev/Citizens2
This commit is contained in:
commit
2645dc40f7
@ -1154,7 +1154,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);
|
||||
|
Loading…
Reference in New Issue
Block a user