Class PostTeamSendMessageEvent

java.lang.Object
org.bukkit.event.Event
com.booksaw.betterTeams.customEvents.TeamEvent
com.booksaw.betterTeams.customEvents.TeamPlayerEvent
com.booksaw.betterTeams.customEvents.post.PostTeamSendMessageEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PostTeamSendMessageEvent extends TeamPlayerEvent
An event which is called after a team message has been sent (notification only).
  • Constructor Details

    • PostTeamSendMessageEvent

      public PostTeamSendMessageEvent(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer sender, @NotNull @NotNull String formattedMessage, @NotNull @NotNull Collection<TeamPlayer> recipients)
      Creates an event with the original data for the message.
      Parameters:
      team - the team which the message is being sent to
      sender - the sender of the message
      formattedMessage - the message which has been sent (with the included formatting)
      recipients - the current recipients of the message
  • Method Details

    • getSender

      public TeamPlayer getSender()
      Returns:
      The player who sent this message to their team.
      API Note:
      A more readable overload of TeamPlayerEvent.getTeamPlayer().
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getFormattedMessage

      @NotNull public @NotNull String getFormattedMessage()
    • getRecipients

      public Set<TeamPlayer> getRecipients()