Class ReferencedFormatMessage

java.lang.Object
com.booksaw.betterTeams.message.ReferencedFormatMessage
All Implemented Interfaces:
Message

public class ReferencedFormatMessage extends Object implements Message
Used when sending a message to the user which has a fixed format and is loaded from messages.yml
Author:
booksaw
  • Constructor Details

    • ReferencedFormatMessage

      public ReferencedFormatMessage(String reference, Object... replacements)
      Parameters:
      reference - the messages.yml reference for the command
      replacements - all replacements that need to be made to the message
  • Method Details

    • sendMessage

      public void sendMessage(org.bukkit.command.CommandSender recipient)
      Description copied from interface: Message
      Used to send the message.
      Specified by:
      sendMessage in interface Message
      Parameters:
      recipient - the CommandSender 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.

      Specified by:
      sendTitle in interface Message
      Parameters:
      recipient - the Player to send the title 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.
      Specified by:
      sendMessage in interface Message
      Parameters:
      recipients - the CommandSenders to send the message 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.

      Specified by:
      sendTitle in interface Message
      Parameters:
      recipients - the Players to send the title to.