Fix dots not being replaced when renaming party

This commit is contained in:
Warrior 2023-03-22 19:33:25 +01:00
parent c072ae4990
commit 37ec591bed

View File

@ -25,7 +25,7 @@ public class PartyRenameCommand implements CommandExecutor {
Party playerParty = mcMMOPlayer.getParty(); Party playerParty = mcMMOPlayer.getParty();
String oldPartyName = playerParty.getName(); 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 // This is to prevent party leaders from spamming other players with the rename message
if (oldPartyName.equalsIgnoreCase(newPartyName)) { if (oldPartyName.equalsIgnoreCase(newPartyName)) {