From bfc0a2350663635ade10af8f5585c6e974379691 Mon Sep 17 00:00:00 2001 From: Pepich Date: Wed, 1 Feb 2017 18:22:53 +0100 Subject: [PATCH] Fixed logmessage check to null instead of nonnull --- 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 cac3a46..0faceb4 100644 --- a/src/com/redstoner/misc/Utils.java +++ b/src/com/redstoner/misc/Utils.java @@ -111,7 +111,7 @@ public final class Utils { for (Player p : Bukkit.getOnlinePlayers()) p.sendMessage(prefix + message); - if (logmessage != null) + if (logmessage == null) Bukkit.getConsoleSender().sendMessage(prefix + message); return Bukkit.getOnlinePlayers().size(); } @@ -124,7 +124,7 @@ public final class Utils p.sendMessage(prefix + message); count++; } - if (logmessage != null) + if (logmessage == null) if (filter.sendTo(Bukkit.getConsoleSender())) { Bukkit.getConsoleSender().sendMessage(prefix + message);