From c43f04c2817aad48e3258ca34d781fb434032337 Mon Sep 17 00:00:00 2001 From: Kiron <56218513+kiriDevs@users.noreply.github.com> Date: Sat, 8 May 2021 13:54:28 +0200 Subject: [PATCH] fix: Allow names of exactly 35 length for /rename --- src/main/java/de/kiridevs/kiricore/commands/CMDrename.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/kiridevs/kiricore/commands/CMDrename.java b/src/main/java/de/kiridevs/kiricore/commands/CMDrename.java index 4208756..e012edd 100644 --- a/src/main/java/de/kiridevs/kiricore/commands/CMDrename.java +++ b/src/main/java/de/kiridevs/kiricore/commands/CMDrename.java @@ -68,7 +68,7 @@ public boolean onCommand( // Remove trailing space from the string newName = newNameBuilder.substring(0, newName.length() - 1); - if (newName.length() > 35) { + if (newName.length() >= 35) { messageService.sendErrorMessage(cmdSender, "This name is too long! " + "The maximum is 35 characters, " +