From 0e043843e4b391184200a7f2ad9736d2a560fd72 Mon Sep 17 00:00:00 2001 From: fullwall Date: Fri, 21 Feb 2020 23:52:53 +0800 Subject: [PATCH] Adjust NPC_NAME_TOO_LONG message --- main/src/main/java/net/citizensnpcs/commands/NPCCommands.java | 2 +- main/src/main/resources/messages_en.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index cc041839d..03b6ceef6 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -402,7 +402,7 @@ public class NPCCommands { int nameLength = type == EntityType.PLAYER ? 46 : 64; if (name.length() > nameLength) { - Messaging.sendErrorTr(sender, Messages.NPC_NAME_TOO_LONG); + Messaging.sendErrorTr(sender, Messages.NPC_NAME_TOO_LONG, nameLength); name = name.substring(0, nameLength); } if (name.length() == 0) diff --git a/main/src/main/resources/messages_en.properties b/main/src/main/resources/messages_en.properties index 98026bed9..84e2cbb1d 100644 --- a/main/src/main/resources/messages_en.properties +++ b/main/src/main/resources/messages_en.properties @@ -54,7 +54,7 @@ citizens.commands.npc.copy.copied=[[{0}]] has been copied. citizens.commands.npc.create.mobtype-missing=[[{0}]] is not supported as an NPC mobtype. citizens.commands.npc.create.invalid-location=Spawn location could not be parsed or was not found. citizens.commands.npc.create.invalid-mobtype=[[{0}]] is not a valid mob type. -citizens.commands.npc.create.npc-name-too-long=NPC names cannot be longer than 16 characters. The name has been shortened. +citizens.commands.npc.create.npc-name-too-long=NPC names cannot be longer than [[{0}]] characters. The name has been shortened. citizens.commands.npc.create.no-player-for-spawn=No player could be found by that name to spawn an NPC at. citizens.commands.npc.despawn.despawned=You despawned [[{0}]]. citizens.commands.npc.flyable.set=[[{0}]] is now flyable.