Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
fix: Allow names of exactly 35 length for /rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kiriDevs committed May 8, 2021
1 parent 8c264b0 commit c43f04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/kiridevs/kiricore/commands/CMDrename.java
Original file line number Diff line number Diff line change
Expand Up @@ -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, " +
Expand Down

0 comments on commit c43f04c

Please sign in to comment.