-
- All Implemented Interfaces:
public final class MessageExtensionsKt
-
-
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 -
-
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
-
-
-
-