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 boolean
broadcast(Object msg)
static boolean
broadcast(String msg)
static boolean
broadcast(net.md_5.bungee.api.chat.BaseComponent... components)
static boolean
broadcast(net.md_5.bungee.api.chat.TextComponent msg)
static void
debug(Object msg)
static void
error(Object msg, StackTraceElement ele)
static String
getPrefix()
static void
info(Object msg)
Outputs the formatted message to console.static void
out(Object msg)
Outputs the raw message to console.static void
setPrefix(String prefix)
static void
setup(org.bukkit.plugin.Plugin plugin)
static void
setupDebug(org.bukkit.plugin.Plugin plugin, boolean status)
static void
severe(Object msg)
static boolean
tell(org.bukkit.command.CommandSender player, Object msg)
static boolean
tell(org.bukkit.command.CommandSender sender, String msg)
static boolean
tell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.BaseComponent msg)
static boolean
tell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.BaseComponent... msg)
static boolean
tell(org.bukkit.command.CommandSender sender, net.md_5.bungee.api.chat.TextComponent msg)
static boolean
tell(org.bukkit.entity.Player player, Object msg)
static boolean
tell(org.bukkit.entity.Player player, String msg)
static String[]
trim(String[] strings)
static boolean
validate()
static void
warning(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)
-
-