Class ChatMessage

All Implemented Interfaces:
ComponentHolderMessage, Message

public class ChatMessage extends StaticComponentHolderMessage
  • Method Details

    • sendSpyMessage

      public void sendSpyMessage(org.bukkit.command.CommandSender recipient)
    • sendSpyMessage

      public void sendSpyMessage(Collection<? extends org.bukkit.command.CommandSender> recipients)
    • teamChat

      public static ChatMessage teamChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @NotNull @NotNull String message)
    • teamChat

      public static ChatMessage teamChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @Nullable @Nullable String prefix, @NotNull @NotNull String message)
    • allyChat

      public static ChatMessage allyChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @Nullable @Nullable String prefix, @NotNull @NotNull String message)
    • customSyntaxTeamChat

      public static ChatMessage customSyntaxTeamChat(@NotNull @NotNull Team team, @NotNull @NotNull TeamPlayer teamPlayer, @Nullable @Nullable String prefix, @NotNull @NotNull String message, @NotNull @NotNull String syntax)
    • sendMessage

      public void sendMessage(org.bukkit.command.CommandSender recipient)
      Description copied from interface: Message
      Used to send the message.
      Parameters:
      recipient - the CommandSender to send the message to.
    • sendMessage

      public void sendMessage(Collection<? extends org.bukkit.command.CommandSender> recipients)
      Description copied from interface: Message
      Used to send the message to a Collection of Players.
      Parameters:
      recipients - the CommandSenders to send the message to
    • sendTitle

      public void sendTitle(org.bukkit.entity.Player recipient)
      Description copied from interface: Message
      Used to send a title to a Player.

      A 'title' is a big text, centered on the recipient screen. It fades in and out and is only shortly visible.

      This message is not logged in the chat. if you need this, use Message.sendMessage(CommandSender) instead.

      Parameters:
      recipient - the Player to send the title to.
    • sendTitle

      public void sendTitle(Collection<org.bukkit.entity.Player> recipients)
      Description copied from interface: Message
      Used to send a title to a Collection of Players.

      A 'title' is a big text, centered on the recipient screen. It fades in and out and is only shortly visible.

      This message is not logged in the chat. if you need this, use Message.sendMessage(Collection) instead.

      Parameters:
      recipients - the Players to send the title to.
    • getTeam

      public Team getTeam()
    • getTeamPlayer

      public TeamPlayer getTeamPlayer()
    • getSpyMessage

      public net.kyori.adventure.text.Component getSpyMessage()