mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-25 16:45:28 +02:00
reworking party code
This commit is contained in:
@@ -25,7 +25,8 @@ public class PartyCreateCommand implements CommandExecutor {
|
||||
}
|
||||
|
||||
// Check to see if the party exists, and if it does cancel creating a new party
|
||||
if (mcMMO.getPartyManager().checkPartyExistence(player, args[1])) {
|
||||
if (mcMMO.getPartyManager().checkPartyExistence(args[1])) {
|
||||
player.sendMessage(LocaleLoader.getString("Commands.Party.AlreadyExists", args[1]));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -36,7 +36,8 @@ public class PartyRenameCommand implements CommandExecutor {
|
||||
Player player = mmoPlayer.getPlayer();
|
||||
|
||||
// Check to see if the party exists, and if it does cancel renaming the party
|
||||
if (mcMMO.getPartyManager().checkPartyExistence(player, newPartyName)) {
|
||||
if (mcMMO.getPartyManager().checkPartyExistence(newPartyName)) {
|
||||
player.sendMessage(LocaleLoader.getString("Commands.Party.AlreadyExists", newPartyName));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user