0

APIv4, support for spigot 1.12 (and up) #6

Merged
Pepich merged 13 commits from APIv4_spigot_1.12 into master 2017-10-31 15:53:31 +00:00
Showing only changes of commit 14af1d6fff - Show all commits

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.