From 9c7b83a52effa85e76fb5774ec3908f64531c38c Mon Sep 17 00:00:00 2001 From: JamieSinn Date: Thu, 12 Nov 2015 16:06:43 -0500 Subject: [PATCH] Strip colours from party chat when logging to console. --- .../nossr50/runnables/party/PartyChatTask.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/party/PartyChatTask.java b/src/main/java/com/gmail/nossr50/runnables/party/PartyChatTask.java index 2aee83301..ff4b4999f 100644 --- a/src/main/java/com/gmail/nossr50/runnables/party/PartyChatTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/party/PartyChatTask.java @@ -1,16 +1,15 @@ package com.gmail.nossr50.runnables.party; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - +import com.gmail.nossr50.config.Config; +import com.gmail.nossr50.datatypes.party.Party; +import com.gmail.nossr50.locale.LocaleLoader; import org.bukkit.ChatColor; import org.bukkit.entity.Player; import org.bukkit.plugin.Plugin; import org.bukkit.scheduler.BukkitRunnable; -import com.gmail.nossr50.config.Config; -import com.gmail.nossr50.datatypes.party.Party; -import com.gmail.nossr50.locale.LocaleLoader; +import java.util.regex.Matcher; +import java.util.regex.Pattern; public class PartyChatTask extends BukkitRunnable { private Plugin plugin; @@ -46,6 +45,6 @@ public class PartyChatTask extends BukkitRunnable { } } - plugin.getServer().getConsoleSender().sendMessage("[mcMMO] [P]<" + party.getName() + ">" + message); + plugin.getServer().getConsoleSender().sendMessage(ChatColor.stripColor("[mcMMO] [P]<" + party.getName() + ">" + message)); } }