Class LocalPartyManager
java.lang.Object
de.simonsator.partyandfriends.api.party.PartyManager
de.simonsator.partyandfriends.party.partymanager.LocalPartyManager
- All Implemented Interfaces:
Deactivated
-
Field Summary
Fields inherited from class de.simonsator.partyandfriends.api.party.PartyManager
INVITATION_TIMEOUT_TIME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayerToParty
(OnlinePAFPlayer player, PlayerParty party) Puts the player with the party in theHashMap
createParty
(OnlinePAFPlayer player) Creates a party if the player is not already in a party.void
void
deleteParty
(PlayerParty party) Deletes a party which is givenA player cannot have an party when he is offline.void
removePlayerFromParty
(PAFPlayer player) Removes the player party link from theHashMap
Methods inherited from class de.simonsator.partyandfriends.api.party.PartyManager
getInstance, getParty, onDisable
-
Constructor Details
-
LocalPartyManager
Deprecated. -
LocalPartyManager
public LocalPartyManager(long pInvitationTimeoutTime)
-
-
Method Details
-
getParty
Description copied from class:PartyManager
A player cannot have an party when he is offline. This is only for the case that the player has left the server before the async disconnect was executed- Specified by:
getParty
in classPartyManager
- Parameters:
pUUID
- The uuid of the player- Returns:
- Returns the party of the player, if he has one, else it is returning null.
-
createParty
Creates a party if the player is not already in a party.- Specified by:
createParty
in classPartyManager
- Parameters:
player
- The player- Returns:
- Returns true if the party was created or false if not
-
deleteAllParties
public void deleteAllParties()- Specified by:
deleteAllParties
in classPartyManager
-
deleteParty
Deletes a party which is given- Specified by:
deleteParty
in classPartyManager
- Parameters:
party
- The party
-
addPlayerToParty
Puts the player with the party in theHashMap
- Specified by:
addPlayerToParty
in classPartyManager
- Parameters:
player
- The Playerparty
- The Party
-
removePlayerFromParty
Removes the player party link from theHashMap
- Specified by:
removePlayerFromParty
in classPartyManager
- Parameters:
player
- The Player
-