summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPepich <benedikt.abel@yahoo.de>2017-03-31 14:19:23 +0200
committerPepich <benedikt.abel@yahoo.de>2017-03-31 14:19:23 +0200
commitbb95bf2700c8cec7049a1608b6e7f74c5d6d4ea7 (patch)
tree99efdcc17431336e181fd5ed2dc2d1fc5630ceb0
parentca0582cafe933a34fe416329724caaf05b940bd8 (diff)
Fixed sendErrorMessage throwing NPEs
-rw-r--r--src/com/redstoner/misc/Utils.java4
1 files 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);