Enum AnnouncementManager

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<AnnouncementManager>, java.lang.constant.Constable

    public enum AnnouncementManager
    extends java.lang.Enum<AnnouncementManager>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Method Summary

      Modifier and Type Method Description
      static AnnouncementManager getAnnouncement​(java.lang.String supposedAnnounceType)  
      net.md_5.bungee.api.plugin.Command getCommandClass()  
      ConfigManager.Field getFieldPrefix()  
      void send​(net.md_5.bungee.api.connection.ProxiedPlayer player, net.md_5.bungee.api.chat.TextComponent message, java.lang.Integer... optionalTitleArgs)
      Send any type of anouncement with a lot of possibilities by specifying all of each following parameters.
      static void sendToPlayer​(AnnouncementManager announcement, net.md_5.bungee.api.CommandSender sender, java.lang.String player, java.lang.String message, boolean prefix, java.lang.Integer... optionalTitleArgs)
      Send any type of anouncement to a player with a lot of possibilities by specifying all of each following parameters.
      static void sendToPlayer​(AnnouncementManager announcement, net.md_5.bungee.api.CommandSender sender, net.md_5.bungee.api.connection.ProxiedPlayer pplayer, java.lang.String message, boolean prefix, java.lang.Integer... optionalTitleArgs)
      Send any type of anouncement to a player with a lot of possibilities by specifying all of each following parameters.
      static void sendToServer​(AnnouncementManager announcement, net.md_5.bungee.api.CommandSender sender, java.lang.String message, java.util.List<net.md_5.bungee.api.config.ServerInfo> servers, boolean prefix, java.lang.String permission, java.lang.Integer... optionalTitleArgs)
      Send any type of anouncement to a server with a lot of possibilities by specifying all of each following parameters.
      static void sendToServer​(AnnouncementManager announcement, net.md_5.bungee.api.CommandSender sender, net.md_5.bungee.api.connection.ProxiedPlayer player, java.lang.String message, java.util.List<net.md_5.bungee.api.config.ServerInfo> servers, boolean prefix, java.lang.String permission, java.lang.Integer... optionalTitleArgs)
      Send any type of anouncement to a server with a lot of possibilities by specifying all of each following parameters.
      java.lang.String toString()  
      static AnnouncementManager valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AnnouncementManager[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static AnnouncementManager[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AnnouncementManager valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<AnnouncementManager>
      • getCommandClass

        public net.md_5.bungee.api.plugin.Command getCommandClass()
      • send

        public void send​(net.md_5.bungee.api.connection.ProxiedPlayer player,
                         net.md_5.bungee.api.chat.TextComponent message,
                         java.lang.Integer... optionalTitleArgs)
        Send any type of anouncement with a lot of possibilities by specifying all of each following parameters.
        Parameters:
        player - The player to whom we must send the message.
        message - Message of the announcement.
        optionalTitleArgs - Optional title arguments. Put three integers and they will be used for fadeIn, stay and fadeOut values.
      • getAnnouncement

        public static AnnouncementManager getAnnouncement​(java.lang.String supposedAnnounceType)
      • sendToServer

        public static void sendToServer​(AnnouncementManager announcement,
                                        net.md_5.bungee.api.CommandSender sender,
                                        java.lang.String message,
                                        java.util.List<net.md_5.bungee.api.config.ServerInfo> servers,
                                        boolean prefix,
                                        java.lang.String permission,
                                        java.lang.Integer... optionalTitleArgs)
        Send any type of anouncement to a server with a lot of possibilities by specifying all of each following parameters.
        Parameters:
        announcement - The announce type (title/subtitle/warn/announce/action).
        sender - The sender who's supposed to had sent this announcement. Put null if ignored.
        message - Message of the announcement.
        servers - Servers on which the announcement will be displayed. Put null if you want to display the announcement on all your bungee servers.
        prefix - Does the announcement use pre defined prefix in config.yml.
        permission - Permission which is required to see this announcement. Put an empty string if ignored.
        optionalTitleArgs - Optional title arguments. Put three integers and they will be used for fadeIn, stay and fadeOut values.
      • sendToServer

        public static void sendToServer​(AnnouncementManager announcement,
                                        net.md_5.bungee.api.CommandSender sender,
                                        net.md_5.bungee.api.connection.ProxiedPlayer player,
                                        java.lang.String message,
                                        java.util.List<net.md_5.bungee.api.config.ServerInfo> servers,
                                        boolean prefix,
                                        java.lang.String permission,
                                        java.lang.Integer... optionalTitleArgs)
        Send any type of anouncement to a server with a lot of possibilities by specifying all of each following parameters.
        Parameters:
        announcement - The announce type (title/subtitle/warn/announce/action).
        sender - The sender who's supposed to had sent this announcement. Put null if ignored.
        player - The player involved by the message (put null to ignore).
        message - Message of the announcement.
        servers - Servers on which the announcement will be displayed. Put null if you want to display the announcement on all your bungee servers.
        prefix - Does the announcement use pre defined prefix in config.yml.
        permission - Permission which is required to see this announcement. Put an empty string if ignored.
        optionalTitleArgs - Optional title arguments. Put three integers and they will be used for fadeIn, stay and fadeOut values.
      • sendToPlayer

        public static void sendToPlayer​(AnnouncementManager announcement,
                                        net.md_5.bungee.api.CommandSender sender,
                                        net.md_5.bungee.api.connection.ProxiedPlayer pplayer,
                                        java.lang.String message,
                                        boolean prefix,
                                        java.lang.Integer... optionalTitleArgs)
        Send any type of anouncement to a player with a lot of possibilities by specifying all of each following parameters.
        Parameters:
        announcement - The announce type (title/subtitle/warn/announce/action).
        sender - The sender who's supposed to had sent this announcement. Put null if ignored.
        pplayer - The player to whom we must send the message.
        message - Message of the announcement.
        prefix - Does the announcement use pre defined prefix in config.yml.
        optionalTitleArgs - Optional title arguments. Put three integers and they will be used for fadeIn, stay and fadeOut values.
      • sendToPlayer

        public static void sendToPlayer​(AnnouncementManager announcement,
                                        net.md_5.bungee.api.CommandSender sender,
                                        java.lang.String player,
                                        java.lang.String message,
                                        boolean prefix,
                                        java.lang.Integer... optionalTitleArgs)
        Send any type of anouncement to a player with a lot of possibilities by specifying all of each following parameters.
        Parameters:
        announcement - The announce type (title/subtitle/warn/announce/action).
        sender - The sender who's supposed to had sent this announcement. Put null if ignored.
        player - The player to whom we must send the message.
        message - Message of the announcement.
        prefix - Does the announcement use pre defined prefix in config.yml.
        optionalTitleArgs - Optional title arguments. Put three integers and they will be used for fadeIn, stay and fadeOut values.