mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Fixed a bug which made it impossible to join other players' parties.
This commit is contained in:
@ -186,7 +186,9 @@ public class PartyCommand implements CommandExecutor {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!mcMMOPlayer.inParty()) {
|
||||
McMMOPlayer mcMMOTarget = Users.getPlayer(target);
|
||||
|
||||
if (!mcMMOTarget.inParty()) {
|
||||
player.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", args[1]));
|
||||
return false;
|
||||
}
|
||||
@ -209,7 +211,7 @@ public class PartyCommand implements CommandExecutor {
|
||||
password = args[2];
|
||||
}
|
||||
|
||||
Party targetParty = Users.getPlayer(target).getParty();
|
||||
Party targetParty = mcMMOTarget.getParty();
|
||||
|
||||
// Check to see if the party exists, and if it does, can the player join it?
|
||||
if (targetParty != null && !PartyManager.checkJoinability(player, targetParty, null)) {
|
||||
|
Reference in New Issue
Block a user