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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayerToParty(OnlinePAFPlayer player, PlayerParty party) Puts the player with the party in theHashMapcreateParty(OnlinePAFPlayer player) Creates a party if the player is not already in a party.voidvoiddeleteParty(PlayerParty party) Deletes a party which is givenA player cannot have an party when he is offline.voidremovePlayerFromParty(PAFPlayer player) Removes the player party link from theHashMapMethods 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:PartyManagerA 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:
getPartyin 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:
createPartyin classPartyManager- Parameters:
player- The player- Returns:
- Returns true if the party was created or false if not
-
deleteAllParties
public void deleteAllParties()- Specified by:
deleteAllPartiesin classPartyManager
-
deleteParty
Deletes a party which is given- Specified by:
deletePartyin classPartyManager- Parameters:
party- The party
-
addPlayerToParty
Puts the player with the party in theHashMap- Specified by:
addPlayerToPartyin classPartyManager- Parameters:
player- The Playerparty- The Party
-
removePlayerFromParty
Removes the player party link from theHashMap- Specified by:
removePlayerFromPartyin classPartyManager- Parameters:
player- The Player
-