Class LocalPlayerParty
java.lang.Object
de.simonsator.partyandfriends.api.party.PlayerParty
de.simonsator.partyandfriends.party.playerpartys.LocalPlayerParty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPlayer(OnlinePAFPlayer pPlayer) Adds a player to the partyprotected voidaddToInvited(OnlinePAFPlayer pPlayer) protected voidintReturns the size of the invitation listGets the leader of this partyReturns the "normal" players who are in the party.protected booleanisAMember(OnlinePAFPlayer pPlayer) booleanbooleanReturns true if the given player is the leader of this party, and it will returns false if he is not the leader, of this partybooleanprotected booleanneedsNewLeader(PAFPlayer pPlayer) voidremoveFromInvited(PAFPlayer pPlayer) protected voidremovePlayerSilent(PAFPlayer pPlayer) voidvoidsetLeader(OnlinePAFPlayer player) Sets the party leader.voidsetPrivateState(boolean pIsPrivate) Methods inherited from class de.simonsator.partyandfriends.api.party.PlayerParty
getAllPlayers, invite, isInParty, isInvited, isLeader, isNobodyInvited, isPartyEmpty, kickPlayer, leaveParty, leaveParty, removeFromInvited, sendMessage, sendMessage
-
Constructor Details
-
LocalPlayerParty
Initials a new party- Parameters:
leader- The leader of the party
-
-
Method Details
-
isLeader
Description copied from class:PlayerPartyReturns true if the given player is the leader of this party, and it will returns false if he is not the leader, of this party- Specified by:
isLeaderin classPlayerParty- Parameters:
player- The player- Returns:
- Returns a true if the given player is the leader of this party, and it will returns false if he is not the leader, of this party
-
isBanned
- Specified by:
isBannedin classPlayerParty
-
setBanned
- Specified by:
setBannedin classPlayerParty
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein classPlayerParty
-
setPrivateState
public void setPrivateState(boolean pIsPrivate) - Specified by:
setPrivateStatein classPlayerParty
-
isAMember
- Specified by:
isAMemberin classPlayerParty
-
getInvited
- Specified by:
getInvitedin classPlayerParty
-
getLeader
Gets the leader of this party- Specified by:
getLeaderin classPlayerParty- Returns:
- Returns the party leader
-
setLeader
Sets the party leader.- Specified by:
setLeaderin classPlayerParty- Parameters:
player- The player
-
getPlayers
Returns the "normal" players who are in the party.- Specified by:
getPlayersin classPlayerParty- Returns:
- Returns the "normal" players who are in the party.
-
addPlayer
Adds a player to the party- Specified by:
addPlayerin classPlayerParty- Parameters:
pPlayer- The player- Returns:
- Returns true if the player was added to this party. Returns false if the player was not added to this party
-
removeFromInvited
- Specified by:
removeFromInvitedin classPlayerParty
-
addToInvited
- Specified by:
addToInvitedin classPlayerParty
-
removePlayerSilent
- Specified by:
removePlayerSilentin classPlayerParty
-
getInviteListSize
public int getInviteListSize()Returns the size of the invitation list- Specified by:
getInviteListSizein classPlayerParty- Returns:
- Returns the size of the invitation list
-
needsNewLeader
- Specified by:
needsNewLeaderin classPlayerParty
-
findNewLeader
protected void findNewLeader()- Specified by:
findNewLeaderin classPlayerParty
-