Fixed playerParty never being initialized.

This commit is contained in:
GJ 2013-02-07 22:10:31 -05:00
parent 70ba4a0f3d
commit 3cc5cd4a04

View File

@ -100,6 +100,7 @@ public class PartyJoinCommand implements CommandExecutor {
player = (Player) sender; player = (Player) sender;
mcMMOPlayer = Users.getPlayer(player); mcMMOPlayer = Users.getPlayer(player);
playerParty = mcMMOPlayer.getParty();
targetParty = mcMMOTarget.getParty(); targetParty = mcMMOTarget.getParty();
if (player.equals(target) || (mcMMOPlayer.inParty() && playerParty.equals(targetParty))) { if (player.equals(target) || (mcMMOPlayer.inParty() && playerParty.equals(targetParty))) {