diff options
author | Minenash <enderbros.minenash@gmail.com> | 2017-07-08 15:11:24 -0400 |
---|---|---|
committer | Minenash <enderbros.minenash@gmail.com> | 2017-07-08 15:11:24 -0400 |
commit | 14af1d6fff72ddba243c241b4e7909b0029f80f7 (patch) | |
tree | 834b37e2cdddaba2c9ae66f560b63e7a3dd6dadd /src | |
parent | 110e5996328bd977693ada88a324b257eafa9914 (diff) |
Added sendMessage and sendErrorMessage methods w/o the prefix argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/redstoner/misc/Utils.java | 20 |
1 files changed, 20 insertions, 0 deletions
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. |