Remove Pay wall for Party sizes

This commit is contained in:
TadahTech 2016-07-21 02:59:15 -05:00
parent 9f0f4e0018
commit b734dc4e87
3 changed files with 6 additions and 7 deletions

View File

@ -137,11 +137,10 @@ public class Party
/** /**
* Set's this party's size cap base off the current players rank * Set's this party's size cap base off the current players rank
* *
* @param increased <code>true</code> if this party should have the increased size
*/ */
public void setSize(boolean increased) public void setSize()
{ {
_size = increased ? PARTY_MAX_SIZE : PARTY_MIN_SIZE; _size = PARTY_MAX_SIZE;
} }
/** /**

View File

@ -53,10 +53,10 @@ public class PartyEventListener implements Listener
if (bukkitPlayer != null && _plugin.getClientManager().Get(bukkitPlayer).GetRank().has(Rank.ULTRA)) if (bukkitPlayer != null && _plugin.getClientManager().Get(bukkitPlayer).GetRank().has(Rank.ULTRA))
{ {
party.setSize(true); party.setSize();
} else } else
{ {
party.setSize(false); party.setSize();
} }
_plugin.addParty(party); _plugin.addParty(party);

View File

@ -82,10 +82,10 @@ public class PartyInviteManager
newParty = new Party(possible.getName()); newParty = new Party(possible.getName());
if(_plugin.getClientManager().Get(possible).GetRank().has(Rank.ULTRA)) if(_plugin.getClientManager().Get(possible).GetRank().has(Rank.ULTRA))
{ {
newParty.setSize(true); newParty.setSize();
} else } else
{ {
newParty.setSize(false); newParty.setSize();
} }
_plugin.addParty(newParty); _plugin.addParty(newParty);
_plugin.getMethodManager().addToParty(possible.getUniqueId(), newParty); _plugin.getMethodManager().addToParty(possible.getUniqueId(), newParty);