From 366287eb24a1e82131b1307b716cf1d7c79643b6 Mon Sep 17 00:00:00 2001 From: Telesphoreo Date: Sat, 7 Nov 2020 21:00:49 -0600 Subject: [PATCH] Fix reports being logged multiple times to console --- .../java/me/totalfreedom/totalfreedommod/ChatManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java b/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java index 3c9c33bf..a1d5f332 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/ChatManager.java @@ -49,7 +49,7 @@ public class ChatManager extends FreedomService { final Player player = event.getPlayer(); String message = event.getMessage().trim(); - + // Format colors and strip &k message = FUtil.colorize(message); message = message.replaceAll(ChatColor.MAGIC.toString(), "&k"); @@ -121,7 +121,7 @@ public class ChatManager extends FreedomService { format = tag.replace("%", "%%") + " " + format; } - + // Check for mentions Boolean mentionEveryone = ChatColor.stripColor(message).toLowerCase().contains("@everyone") && plugin.sl.isStaff(player); for (Player p : server.getOnlinePlayers()) @@ -186,8 +186,8 @@ public class ChatManager extends FreedomService if (plugin.sl.isStaff(player)) { playerMsg(player, ChatColor.RED + "[REPORTS] " + ChatColor.GOLD + reporter.getName() + " has reported " + reported.getName() + " for " + report); - FLog.info("[REPORTS] " + reporter.getName() + " has reported " + reported.getName() + " for " + report); } } + FLog.info("[REPORTS] " + reporter.getName() + " has reported " + reported.getName() + " for " + report); } } \ No newline at end of file