-
- All Implemented Interfaces:
public final class MessageExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static TextComponentcomponent(String $self, Style style)Converts a String to a Text Component. final static TextComponentcomponent(String $self, Color color)Converts a String to a Text Component. final static TextComponentcomponent(ComponentBuilderAction builder)Create a TextComponent using ComponentBuilder. final static Unitmessage(CommandSender $self, String text)send string message final static Unitmessage(CommandSender $self, String text, Color color)send string colored message final static Unitmessage(CommandSender $self, Component component)send component final static Unitmessage(CommandSender $self, ComponentBuilderAction builder)send component via builder final static Unitsuccess(CommandSender $self, String text)send green string final static Unitwarn(CommandSender $self, String text)send yellow string final static Unitfail(CommandSender $self, String text)send red string final static UnitpluginMessage(CommandSender $self, JavaPlugin plugin, String text)send string with plugin name final static UnitpluginMessage(CommandSender $self, JavaPlugin plugin, String text, Color color)send colored string with plugin name final static UnitpluginMessage(CommandSender $self, JavaPlugin plugin, Component component)send component with plugin name final static UnitpluginMessage(CommandSender $self, JavaPlugin plugin, ComponentBuilderAction builder)send component via builder with plugin name final static UnitpluginMessageSuccess(CommandSender $self, JavaPlugin plugin, String text)send green string with plugin name final static UnitpluginMessageWarn(CommandSender $self, JavaPlugin plugin, String text)send yellow string with plugin name final static UnitpluginMessageFail(CommandSender $self, JavaPlugin plugin, String text)send red string with plugin name -
-
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.
-
component
final static TextComponent component(ComponentBuilderAction builder)
Create a TextComponent using ComponentBuilder.
-
message
final static Unit message(CommandSender $self, String text, Color color)
send string colored message
-
message
final static Unit message(CommandSender $self, ComponentBuilderAction builder)
send component via builder
-
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
-
pluginMessage
final static Unit pluginMessage(CommandSender $self, JavaPlugin plugin, ComponentBuilderAction builder)
send component via builder 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
-
-
-
-