public interface PartyPlayer
Modifier and Type | Method and Description |
---|---|
default PartyAskRequest |
askToJoin(@NotNull Party party)
Ask to the party if the player can join
|
PartyAskRequest |
askToJoin(@NotNull Party party,
boolean sendMessages)
Ask to the party if the player can join
|
@NotNull String |
getName()
Get the name
|
default long |
getNameTimestamp()
Deprecated.
Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)
|
String |
getNickname()
Get the nickname
|
@Nullable UUID |
getPartyId()
Get the party id
|
@Nullable String |
getPartyName()
Get the party name
|
Set<PartyAskRequest> |
getPendingAskRequests()
Get a list of pending ask requests
|
Set<PartyInvite> |
getPendingInvites()
Get a list of pending invite requests
|
@NotNull UUID |
getPlayerUUID()
Get the player
UUID |
int |
getRank()
Get the rank level
|
default boolean |
isInParty()
Is the player inside a party?
|
boolean |
isMuted()
Is the player muted?
|
boolean |
isSpy()
Is the player a spy?
|
void |
setMuted(boolean value)
Toggle player mute
|
default void |
setName(String name)
Deprecated.
Parties does not handle player names anymore (use LastLoginAPI plugin instead)
|
default void |
setNameTimestamp(long nameTimestamp)
Deprecated.
Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)
|
void |
setNickname(String nickname)
Set the nickname
|
void |
setPartyId(@Nullable UUID partyId)
Set the party id
|
default void |
setPartyName(String partyName)
Deprecated.
use setPartyId instead
|
void |
setRank(int rank)
Set the rank level
|
void |
setSpy(boolean value)
Set the player as a spy
|
@NotNull @NotNull UUID getPlayerUUID()
UUID
UUID
of the player@NotNull @NotNull String getName()
default boolean isInParty()
@Nullable @Nullable UUID getPartyId()
UUID
of the party, null if the player is not in a party@Nullable @Nullable String getPartyName()
void setPartyId(@Nullable @Nullable UUID partyId)
partyId
- the party id to set@Deprecated default void setPartyName(String partyName)
partyName
- the party name to setint getRank()
void setRank(int rank)
rank
- the rank level to setString getNickname()
void setNickname(String nickname)
nickname
- the nickname to setSet<PartyInvite> getPendingInvites()
PartyInvite
Set<PartyAskRequest> getPendingAskRequests()
PartyAskRequest
boolean isSpy()
void setSpy(boolean value)
value
- true to be a spyboolean isMuted()
void setMuted(boolean value)
value
- true to mute notifications@Deprecated default void setName(String name)
name
- the name to set@Deprecated default long getNameTimestamp()
@Deprecated default void setNameTimestamp(long nameTimestamp)
nameTimestamp
- the timestamp to setdefault PartyAskRequest askToJoin(@NotNull @NotNull Party party)
party
- the Party
to askPartyAskRequest
instancePartyAskRequest askToJoin(@NotNull @NotNull Party party, boolean sendMessages)
party
- the PartyPlayer
to asksendMessages
- true if the event should send messages to playersPartyAskRequest
instanceCopyright © 2023. All rights reserved.