Class ReferenceMessage

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

public class ReferenceMessage extends Object implements Message
This type of message is used when you are referencing a message stored in messages.yml
Author:
booksaw
  • Constructor Details

    • ReferenceMessage

      public ReferenceMessage(String reference)
      Parameters:
      reference - The reference for 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.
    • 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(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.
    • 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.