Interface IPlayerPreChatEvent

    • Method Detail

      • getPartyPlayer

        @NotNull
        @NotNull PartyPlayer getPartyPlayer()
        Get the player who sent the message
        Returns:
        the PartyPlayer
      • getParty

        @NotNull
        @NotNull Party getParty()
        Get the party
        Returns:
        the Party
      • getFormattedMessage

        @NotNull
        @NotNull String getFormattedMessage()
        Get the formatted message of the player
        Returns:
        the formatted message
      • setFormattedMessage

        void setFormattedMessage​(String formattedMessage)
        Set the formatted message of the player. This message should contain %message% placeholder
        Parameters:
        formattedMessage - the formatted message to set
      • getMessage

        @NotNull
        @NotNull String getMessage()
        Get the message of the player
        Returns:
        the message
      • setMessage

        void setMessage​(String message)
        Set the message of the player
        Parameters:
        message - the message to set