Class Message


  • public class Message
    extends java.lang.Object
    A Manager class to use different types of message systems
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Message.MessageType
      The enum Message type.
    • Constructor Summary

      Constructors 
      Constructor Description
      Message()  
    • Method Summary

      Modifier and Type Method Description
      static void sendActionBar​(org.bukkit.entity.Player player, java.lang.String message)
      Send an actionbar
      static void sendBossBar​(org.bukkit.entity.Player player, java.lang.String text, org.bukkit.boss.BarColor barColor, org.bukkit.boss.BarStyle barStyle, java.lang.Double progress)
      Send a BossBar
      static void sendChatMessage​(org.bukkit.entity.Player player, java.lang.String message)
      Send a regular chat message
      static void sendMessage​(Message.MessageType messageType, org.bukkit.entity.Player player, java.lang.String message, java.lang.Object... extra)
      Send a Message using the messagetype
      static void sendSubTitle​(org.bukkit.entity.Player player, java.lang.String message)
      Send a subtitle
      static void sendTitle​(org.bukkit.entity.Player player, java.lang.String message)
      Send a title
      static void sendTitleAndSubTitle​(org.bukkit.entity.Player player, java.lang.String title, java.lang.String subTitle)
      Send a Title and a subTitle
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Message

        public Message()
    • Method Detail

      • sendMessage

        public static void sendMessage​(Message.MessageType messageType,
                                       org.bukkit.entity.Player player,
                                       java.lang.String message,
                                       java.lang.Object... extra)
        Send a Message using the messagetype
        Parameters:
        messageType - the message type
        player - the player
        message - the message
        extra - the extra
      • sendTitleAndSubTitle

        public static void sendTitleAndSubTitle​(org.bukkit.entity.Player player,
                                                java.lang.String title,
                                                java.lang.String subTitle)
        Send a Title and a subTitle
        Parameters:
        player - the player
        title - the title
        subTitle - the sub title
      • sendTitle

        public static void sendTitle​(org.bukkit.entity.Player player,
                                     java.lang.String message)
        Send a title
        Parameters:
        player - the player
        message - the message
      • sendSubTitle

        public static void sendSubTitle​(org.bukkit.entity.Player player,
                                        java.lang.String message)
        Send a subtitle
        Parameters:
        player - the player
        message - the message
      • sendActionBar

        public static void sendActionBar​(org.bukkit.entity.Player player,
                                         java.lang.String message)
        Send an actionbar
        Parameters:
        player - the player
        message - the message
      • sendChatMessage

        public static void sendChatMessage​(org.bukkit.entity.Player player,
                                           java.lang.String message)
        Send a regular chat message
        Parameters:
        player - the player
        message - the message
      • sendBossBar

        public static void sendBossBar​(org.bukkit.entity.Player player,
                                       java.lang.String text,
                                       org.bukkit.boss.BarColor barColor,
                                       org.bukkit.boss.BarStyle barStyle,
                                       java.lang.Double progress)
        Send a BossBar
        Parameters:
        player - the player
        text - the text
        barColor - the bar color
        barStyle - the bar style
        progress - the progress