Fixed bug with retrieving a player's party members

This commit is contained in:
GJ 2013-03-17 10:46:29 -04:00
parent c4504de1da
commit 70e8e534fe
2 changed files with 8 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Version 1.4.04-dev
= Fixed bug where Mining wasn't awarding double drops
= Fixed bug where Shake wouldn't damage mobs whose max health was less than 4
= Fixed bug where the API would fail if the name of a player's current party is requested when the player isn't in one (Thanks @dualspiral!)
= Fixed bug with retrieving a player's party members
- Removed deprecated functions from API classes.
Version 1.4.03

View File

@ -131,7 +131,13 @@ public final class PartyManager {
* @return all online players in this party
*/
public static List<Player> getOnlineMembers(Player player) {
return getOnlineMembers(player.getName());
Party party = getPlayerParty(player.getName());
if (party == null) {
return null;
}
return getOnlineMembers(party.getName());
}
/**