Class LocalPlayerParty
java.lang.Object
de.simonsator.partyandfriends.api.party.PlayerParty
de.simonsator.partyandfriends.party.playerpartys.LocalPlayerParty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPlayer
(OnlinePAFPlayer pPlayer) Adds a player to the partyprotected void
addToInvited
(OnlinePAFPlayer pPlayer) protected void
int
Returns the size of the invitation listGets the leader of this partyReturns the "normal" players who are in the party.protected boolean
isAMember
(OnlinePAFPlayer pPlayer) boolean
boolean
Returns true if the given player is the leader of this party, and it will returns false if he is not the leader, of this partyboolean
protected boolean
needsNewLeader
(PAFPlayer pPlayer) void
removeFromInvited
(PAFPlayer pPlayer) protected void
removePlayerSilent
(PAFPlayer pPlayer) void
void
setLeader
(OnlinePAFPlayer player) Sets the party leader.void
setPrivateState
(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:PlayerParty
Returns 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:
isLeader
in 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:
isBanned
in classPlayerParty
-
setBanned
- Specified by:
setBanned
in classPlayerParty
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivate
in classPlayerParty
-
setPrivateState
public void setPrivateState(boolean pIsPrivate) - Specified by:
setPrivateState
in classPlayerParty
-
isAMember
- Specified by:
isAMember
in classPlayerParty
-
getInvited
- Specified by:
getInvited
in classPlayerParty
-
getLeader
Gets the leader of this party- Specified by:
getLeader
in classPlayerParty
- Returns:
- Returns the party leader
-
setLeader
Sets the party leader.- Specified by:
setLeader
in classPlayerParty
- Parameters:
player
- The player
-
getPlayers
Returns the "normal" players who are in the party.- Specified by:
getPlayers
in classPlayerParty
- Returns:
- Returns the "normal" players who are in the party.
-
addPlayer
Adds a player to the party- Specified by:
addPlayer
in 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:
removeFromInvited
in classPlayerParty
-
addToInvited
- Specified by:
addToInvited
in classPlayerParty
-
removePlayerSilent
- Specified by:
removePlayerSilent
in classPlayerParty
-
getInviteListSize
public int getInviteListSize()Returns the size of the invitation list- Specified by:
getInviteListSize
in classPlayerParty
- Returns:
- Returns the size of the invitation list
-
needsNewLeader
- Specified by:
needsNewLeader
in classPlayerParty
-
findNewLeader
protected void findNewLeader()- Specified by:
findNewLeader
in classPlayerParty
-