Interface Message

All Known Subinterfaces:
ComponentHolderMessage
All Known Implementing Classes:
ChatMessage, CompositeMessage, HelpMessage, ReferencedFormatMessage, ReferenceMessage, StaticComponentHolderMessage, StaticMessage, StaticReferencedFormatMessage, StaticReferenceMessage

public interface Message
This class is used to handle the multiple types of message which the plugin contains
Since:
3.1.0
Author:
booksaw
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendMessage(Collection<? extends org.bukkit.command.CommandSender> recipients)
    Used to send the message to a Collection of Players.
    void
    sendMessage(org.bukkit.command.CommandSender recipient)
    Used to send the message.
    void
    sendTitle(Collection<org.bukkit.entity.Player> recipients)
    Used to send a title to a Collection of Players.
    void
    sendTitle(org.bukkit.entity.Player recipient)
    Used to send a title to a Player.
  • Method Details

    • sendMessage

      void sendMessage(org.bukkit.command.CommandSender recipient)
      Used to send the message.
      Parameters:
      recipient - the CommandSender to send the message to.
    • sendMessage

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

      void sendTitle(org.bukkit.entity.Player recipient)
      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 sendMessage(CommandSender) instead.

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

      void sendTitle(Collection<org.bukkit.entity.Player> recipients)
      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 sendMessage(Collection) instead.

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