Package 

Class MessageExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static TextComponent component(String $self, Style style) Converts a String to a Text Component.
      final static TextComponent component(String $self, Color color) Converts a String to a Text Component.
      final static TextComponent component(ComponentBuilderAction builder) Create a TextComponent using ComponentBuilder.
      final static Unit message(CommandSender $self, String text) send string message
      final static Unit message(CommandSender $self, String text, Color color) send string colored message
      final static Unit message(CommandSender $self, Component component) send component
      final static Unit message(CommandSender $self, ComponentBuilderAction builder) send component via builder
      final static Unit success(CommandSender $self, String text) send green string
      final static Unit warn(CommandSender $self, String text) send yellow string
      final static Unit fail(CommandSender $self, String text) send red string
      final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, String text) send string with plugin name
      final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, String text, Color color) send colored string with plugin name
      final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, Component component) send component with plugin name
      final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, ComponentBuilderAction builder) send component via builder with plugin name
      final static Unit pluginMessageSuccess(CommandSender $self, JavaPlugin plugin, String text) send green string with plugin name
      final static Unit pluginMessageWarn(CommandSender $self, JavaPlugin plugin, String text) send yellow string with plugin name
      final static Unit pluginMessageFail(CommandSender $self, JavaPlugin plugin, String text) send red string with plugin name
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • component

         final static TextComponent component(String $self, Style style)

        Converts a String to a Text Component. You can also specify the Style.

      • component

         final static TextComponent component(String $self, Color color)

        Converts a String to a Text Component. You can also specify the Color.

      • message

         final static Unit message(CommandSender $self, String text)

        send string message

      • message

         final static Unit message(CommandSender $self, String text, Color color)

        send string colored message

      • message

         final static Unit message(CommandSender $self, Component component)

        send component

      • success

         final static Unit success(CommandSender $self, String text)

        send green string

      • warn

         final static Unit warn(CommandSender $self, String text)

        send yellow string

      • fail

         final static Unit fail(CommandSender $self, String text)

        send red string

      • pluginMessage

         final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, String text)

        send string with plugin name

      • pluginMessage

         final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, String text, Color color)

        send colored string with plugin name

      • pluginMessage

         final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, Component component)

        send component with plugin name

      • pluginMessageSuccess

         final static Unit pluginMessageSuccess(CommandSender $self, JavaPlugin plugin, String text)

        send green string with plugin name

      • pluginMessageWarn

         final static Unit pluginMessageWarn(CommandSender $self, JavaPlugin plugin, String text)

        send yellow string with plugin name

      • pluginMessageFail

         final static Unit pluginMessageFail(CommandSender $self, JavaPlugin plugin, String text)

        send red string with plugin name