From bb95bf2700c8cec7049a1608b6e7f74c5d6d4ea7 Mon Sep 17 00:00:00 2001 From: Pepich Date: Fri, 31 Mar 2017 14:19:23 +0200 Subject: [PATCH] Fixed sendErrorMessage throwing NPEs --- src/com/redstoner/misc/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/misc/Utils.java b/src/com/redstoner/misc/Utils.java index 7012b32..3bd02c2 100644 --- a/src/com/redstoner/misc/Utils.java +++ b/src/com/redstoner/misc/Utils.java @@ -16,7 +16,7 @@ import net.md_5.bungee.api.ChatColor; /** The utils class containing utility functions. Those include but are not limited to sending formatted messages, broadcasts and more. * * @author Pepich */ -@Version(major = 1, minor = 2, revision = 12, compatible = 1) +@Version(major = 1, minor = 2, revision = 13, compatible = 1) public final class Utils { /** The SimpleDateFormat used for getting the current date. */ @@ -48,7 +48,7 @@ public final class Utils @Debugable public static void sendErrorMessage(CommandSender recipient, String prefix, String message) { - Debugger.notifyMethod(recipient, prefix, message); + Debugger.notifyMethod((Object) recipient, prefix, message); if (prefix == null) prefix = "§8[§c" + getCaller() + "§8]: "; recipient.sendMessage(prefix + "§7" + message);