Package com.hazebyte.crate.api.util
Class Messenger
- java.lang.Object
-
- com.hazebyte.crate.api.util.Messenger
-
public abstract class Messenger extends Object
-
-
Constructor Summary
Constructors Constructor Description Messenger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanbroadcast(Object msg)static booleanbroadcast(String msg)static booleanbroadcast(net.md_5.bungee.api.chat.BaseComponent... components)static booleanbroadcast(net.md_5.bungee.api.chat.TextComponent msg)static voiddebug(Object msg)static voiderror(Object msg, StackTraceElement ele)static StringgetPrefix()static voidinfo(Object msg)Outputs the formatted message to console.static voidout(Object msg)Outputs the raw message to console.static voidsetPrefix(String prefix)static voidsetup(org.bukkit.plugin.Plugin plugin)static voidsetupDebug(org.bukkit.plugin.Plugin plugin, boolean status)static voidsevere(Object msg)static booleantell(org.bukkit.command.CommandSender player, Object msg)static booleantell(org.bukkit.command.CommandSender sender, String msg)static booleantell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.BaseComponent msg)static booleantell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.BaseComponent... msg)static booleantell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.TextComponent msg)static booleantell(org.bukkit.entity.Player player, Object msg)static booleantell(org.bukkit.entity.Player player, String msg)static String[]trim(String[] strings)static booleanvalidate()static voidwarning(Object msg)
-
-
-
Field Detail
-
prefix
public static String prefix
-
-
Method Detail
-
setup
public static void setup(org.bukkit.plugin.Plugin plugin)
-
setupDebug
public static void setupDebug(org.bukkit.plugin.Plugin plugin, boolean status)
-
validate
public static boolean validate()
-
getPrefix
public static String getPrefix()
-
setPrefix
public static void setPrefix(String prefix)
-
tell
public static boolean tell(org.bukkit.command.CommandSender sender, String msg)
-
tell
public static boolean tell(org.bukkit.command.CommandSender player, Object msg)
-
tell
public static boolean tell(org.bukkit.entity.Player player, Object msg)
-
tell
public static boolean tell(org.bukkit.entity.Player player, String msg)
-
tell
public static boolean tell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.BaseComponent msg)
-
tell
public static boolean tell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.BaseComponent... msg)
-
tell
public static boolean tell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.TextComponent msg)
-
broadcast
public static boolean broadcast(net.md_5.bungee.api.chat.BaseComponent... components)
-
broadcast
public static boolean broadcast(net.md_5.bungee.api.chat.TextComponent msg)
-
broadcast
public static boolean broadcast(String msg)
-
broadcast
public static boolean broadcast(Object msg)
-
error
public static void error(Object msg, StackTraceElement ele)
-
out
public static void out(Object msg)
Outputs the raw message to console.- Parameters:
msg-
-
info
public static void info(Object msg)
Outputs the formatted message to console.- Parameters:
msg-
-
warning
public static void warning(Object msg)
-
severe
public static void severe(Object msg)
-
debug
public static void debug(Object msg)
-
-