Class StaticMessage

All Implemented Interfaces:
ComponentHolderMessage, Message

public class StaticMessage extends StaticComponentHolderMessage
This class is used for any messages which should be sent as normal (literally just a message)
Author:
booksaw
  • Constructor Details

    • StaticMessage

      public StaticMessage(String message, boolean prefix)
      Parameters:
      message - The message to send to users
      prefix - if the message should include the prefix or not
    • StaticMessage

      public StaticMessage(String message)
      Parameters:
      message - The message to send to users
  • Method Details

    • 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.