Interface PartyPlayer


  • public interface PartyPlayer
    • Method Detail

      • getPlayerUUID

        @NotNull
        @NotNull UUID getPlayerUUID()
        Get the player UUID
        Returns:
        the UUID of the player
      • getName

        @NotNull
        @NotNull String 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

        @Nullable
        @Nullable UUID getPartyId()
        Get the party id
        Returns:
        the UUID of the party, null if the player is not in a party
      • getPartyName

        @Nullable
        @Nullable String getPartyName()
        Get the party name
        Returns:
        the party name, null if the player is not in a party
      • setPartyId

        void setPartyId​(@Nullable
                        @Nullable UUID partyId)
        Set the party id
        Parameters:
        partyId - the party id to set
      • setPartyName

        @Deprecated
        default void setPartyName​(String partyName)
        Deprecated.
        use setPartyId instead
        Set 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

        void setNickname​(String nickname)
        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
      • 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
        default void setName​(String name)
        Deprecated.
        Parties does not handle player names anymore (use LastLoginAPI plugin instead)
        Set the name
        Parameters:
        name - the name to set
      • getNameTimestamp

        @Deprecated
        default long getNameTimestamp()
        Deprecated.
        Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)
        Get the name timestamp
        Returns:
        the name timestamp
      • setNameTimestamp

        @Deprecated
        default void setNameTimestamp​(long nameTimestamp)
        Deprecated.
        Parties does not handle login timestamp anymore (use LastLoginAPI plugin instead)
        Set the name timestamp
        Parameters:
        nameTimestamp - the timestamp to set
      • askToJoin

        PartyAskRequest askToJoin​(@NotNull
                                  @NotNull Party party,
                                  boolean sendMessages)
        Ask to the party if the player can join
        Parameters:
        party - the PartyPlayer to ask
        sendMessages - true if the event should send messages to players
        Returns:
        the PartyAskRequest instance