This is better too.

This commit is contained in:
GJ
2013-08-26 12:20:56 -04:00
parent a17d1d3a2f
commit 435522415d
2 changed files with 6 additions and 5 deletions

View File

@ -378,8 +378,10 @@ public final class PartyManager {
* @param party The party to check
* @return true if the player can invite
*/
public static boolean canInvite(String playerName, Party party) {
return !party.isLocked() || party.getLeader().equalsIgnoreCase(playerName);
public static boolean canInvite(McMMOPlayer mcMMOPlayer) {
Party party = mcMMOPlayer.getParty();
return !party.isLocked() || party.getLeader().equalsIgnoreCase(mcMMOPlayer.getPlayer().getName());
}
/**