From 37ec591bed91c0e75b10f93de91dbb50e413f480 Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Wed, 22 Mar 2023 19:33:25 +0100 Subject: [PATCH] Fix dots not being replaced when renaming party --- .../com/gmail/nossr50/commands/party/PartyRenameCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/party/PartyRenameCommand.java b/src/main/java/com/gmail/nossr50/commands/party/PartyRenameCommand.java index 2ab6f0621..29e35cd4a 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyRenameCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PartyRenameCommand.java @@ -25,7 +25,7 @@ public class PartyRenameCommand implements CommandExecutor { Party playerParty = mcMMOPlayer.getParty(); String oldPartyName = playerParty.getName(); - String newPartyName = args[1]; + String newPartyName = args[1].replace(".", ""); // This is to prevent party leaders from spamming other players with the rename message if (oldPartyName.equalsIgnoreCase(newPartyName)) {