From 14af1d6fff72ddba243c241b4e7909b0029f80f7 Mon Sep 17 00:00:00 2001 From: Minenash Date: Sat, 8 Jul 2017 15:11:24 -0400 Subject: [PATCH] Added sendMessage and sendErrorMessage methods w/o the prefix argument. --- src/com/redstoner/misc/Utils.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/com/redstoner/misc/Utils.java b/src/com/redstoner/misc/Utils.java index f094b20..fbb7a09 100644 --- a/src/com/redstoner/misc/Utils.java +++ b/src/com/redstoner/misc/Utils.java @@ -26,6 +26,26 @@ public final class Utils private Utils() {} + /** This will send a message to the specified recipient. It will generate the module prefix. + * + * @param recipient Whom to sent the message to. + * @param message The message to sent. Will default to &7 (light_grey) if not specified otherwise. */ + @Debugable + public static void sendMessage(CommandSender recipient, String message) + { + sendMessage(recipient, null, message); + } + + /** This will send a message to the specified recipient. It will generate the module prefix. Also, this will be logged to console as a warning. + * + * @param recipient Whom to sent the message to. + * @param message The message to sent. Will default to &7 (light_grey) if not specified otherwise. */ + @Debugable + public static void sendErrorMessage(CommandSender recipient, String message) + { + sendErrorMessage(recipient, null, message); + } + /** This will send a message to the specified recipient. It will generate the module prefix if you want it to. * * @param recipient Whom to sent the message to.