Interface PartyPlayer
public interface PartyPlayer
-
Method Summary
Modifier and TypeMethodDescriptiondefault PartyAskRequestAsk to the party if the player can joinAsk to the party if the player can join@NotNull StringgetName()Get the namedefault longDeprecated.Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)Get the nickname@Nullable UUIDGet the party id@Nullable StringGet the party nameGet a list of pending ask requestsGet a list of pending invite requests@NotNull UUIDGet the playerUUIDintgetRank()Get the rank leveldefault booleanIs the player inside a party?booleanisMuted()Is the player muted?booleanisSpy()Is the player a spy?voidsetMuted(boolean value) Toggle player mutedefault voidDeprecated.Parties does not handle player names anymore (use LastLoginAPI plugin instead)default voidsetNameTimestamp(long nameTimestamp) Deprecated.Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)voidsetNickname(String nickname) Set the nicknamevoidsetPartyId(@Nullable UUID partyId) Set the party iddefault voidsetPartyName(String partyName) Deprecated.use setPartyId insteadvoidsetRank(int rank) Set the rank levelvoidsetSpy(boolean value) Set the player as a spy
-
Method Details
-
getPlayerUUID
Get the playerUUID- Returns:
- the
UUIDof the player
-
getName
Get the name- Returns:
- the name of the player
-
isInParty
default boolean isInParty()Is the player inside a party?- Returns:
- true if the player is inside a party
-
getPartyId
Get the party id- Returns:
- the
UUIDof the party, null if the player is not in a party
-
getPartyName
Get the party name- Returns:
- the party name, null if the player is not in a party
-
setPartyId
Set the party id- Parameters:
partyId- the party id to set
-
setPartyName
Deprecated.use setPartyId insteadSet the party name- Parameters:
partyName- the party name to set
-
getRank
int getRank()Get the rank level- Returns:
- the rank level
-
setRank
void setRank(int rank) Set the rank level- Parameters:
rank- the rank level to set
-
getNickname
String getNickname()Get the nickname- Returns:
- the nickname
-
setNickname
Set the nickname- Parameters:
nickname- the nickname to set
-
getPendingInvites
Set<PartyInvite> getPendingInvites()Get a list of pending invite requests- Returns:
- a set of
PartyInvite
-
getPendingAskRequests
Set<PartyAskRequest> getPendingAskRequests()Get a list of pending ask requests- Returns:
- a set of
PartyAskRequest
-
isSpy
boolean isSpy()Is the player a spy?- Returns:
- true if the player is a spy
-
setSpy
void setSpy(boolean value) Set the player as a spy- Parameters:
value- true to be a spy
-
isMuted
boolean isMuted()Is the player muted?- Returns:
- true if the player is muted
-
setMuted
void setMuted(boolean value) Toggle player mute- Parameters:
value- true to mute notifications
-
setName
Deprecated.Parties does not handle player names anymore (use LastLoginAPI plugin instead)Set the name- Parameters:
name- the name to set
-
getNameTimestamp
Deprecated.Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)Get the name timestamp- Returns:
- the name timestamp
-
setNameTimestamp
Deprecated.Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)Set the name timestamp- Parameters:
nameTimestamp- the timestamp to set
-
askToJoin
Ask to the party if the player can join- Parameters:
party- thePartyto ask- Returns:
- the
PartyAskRequestinstance
-
askToJoin
Ask to the party if the player can join- Parameters:
party- thePartyPlayerto asksendMessages- true if the event should send messages to players- Returns:
- the
PartyAskRequestinstance
-