From 55b0e4264aa526b63c078d59633b1a1c2c2334fb Mon Sep 17 00:00:00 2001 From: Vankka Date: Thu, 22 Nov 2018 19:36:00 +0200 Subject: [PATCH] Fix chat --- .../factions/listeners/FactionsChatListener.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsChatListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsChatListener.java index da77d560..2dcc5b0c 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsChatListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsChatListener.java @@ -179,10 +179,6 @@ public class FactionsChatListener implements Listener { // Relation Colored? if (Conf.chatTagRelationColored) { - // Messages are sent to players individually - // This still leaves a chance for other plugins to pick it up - event.setCancelled(true); - for (Player listeningPlayer : event.getRecipients()) { FPlayer you = FPlayers.getInstance().getByPlayer(listeningPlayer); String yourFormat = formatStart + me.getChatTag(you).trim() + formatEnd; @@ -197,9 +193,9 @@ public class FactionsChatListener implements Listener { } } - // Write to the log... We will write the non colored message. - String nonColoredMsg = ChatColor.stripColor(String.format(nonColoredMsgFormat, talkingPlayer.getDisplayName(), msg)); - Bukkit.getLogger().log(Level.INFO, nonColoredMsg); + // Messages are sent to players individually + // This still leaves a chance for other plugins to pick it up + event.getRecipients().clear(); } // Message with no relation color. event.setFormat(nonColoredMsgFormat);