Fixed logmessage check to null instead of nonnull
This commit is contained in:
parent
9df60496db
commit
bfc0a23506
@ -111,7 +111,7 @@ public final class Utils
|
|||||||
{
|
{
|
||||||
for (Player p : Bukkit.getOnlinePlayers())
|
for (Player p : Bukkit.getOnlinePlayers())
|
||||||
p.sendMessage(prefix + message);
|
p.sendMessage(prefix + message);
|
||||||
if (logmessage != null)
|
if (logmessage == null)
|
||||||
Bukkit.getConsoleSender().sendMessage(prefix + message);
|
Bukkit.getConsoleSender().sendMessage(prefix + message);
|
||||||
return Bukkit.getOnlinePlayers().size();
|
return Bukkit.getOnlinePlayers().size();
|
||||||
}
|
}
|
||||||
@ -124,7 +124,7 @@ public final class Utils
|
|||||||
p.sendMessage(prefix + message);
|
p.sendMessage(prefix + message);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
if (logmessage != null)
|
if (logmessage == null)
|
||||||
if (filter.sendTo(Bukkit.getConsoleSender()))
|
if (filter.sendTo(Bukkit.getConsoleSender()))
|
||||||
{
|
{
|
||||||
Bukkit.getConsoleSender().sendMessage(prefix + message);
|
Bukkit.getConsoleSender().sendMessage(prefix + message);
|
||||||
|
Reference in New Issue
Block a user