And a little more...

This commit is contained in:
GJ
2013-05-22 22:30:09 -04:00
parent a82cc9609b
commit 5e00636761
6 changed files with 11 additions and 35 deletions

View File

@ -381,11 +381,7 @@ public final class PartyManager {
* @return true if the player can invite
*/
public static boolean canInvite(Player player, Party party) {
if (party.isLocked() && !party.getLeader().equalsIgnoreCase(player.getName())) {
return false;
}
return true;
return !(party.isLocked() && !party.getLeader().equalsIgnoreCase(player.getName()))
}
/**