Interface IPlayerPreChatEvent

All Superinterfaces:
Cancellable, PartiesEvent
All Known Implementing Classes:
BukkitPartiesPlayerPreChatEvent, BungeePartiesPlayerPreChatEvent, VelocityPartiesPlayerPreChatEvent

public interface IPlayerPreChatEvent extends PartiesEvent, Cancellable
  • Method Details

    • 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