0

Added sendMessage and sendErrorMessage methods w/o the prefix argument.

This commit is contained in:
Minenash
2017-07-08 15:11:24 -04:00
parent 110e599632
commit 14af1d6fff

View File

@@ -26,6 +26,26 @@ public final class Utils
private 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. /** 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. * @param recipient Whom to sent the message to.