Strip colours from party chat when logging to console.

This commit is contained in:
JamieSinn 2015-11-12 16:06:43 -05:00
parent ac9447d439
commit 9c7b83a52e

View File

@ -1,16 +1,15 @@
package com.gmail.nossr50.runnables.party; package com.gmail.nossr50.runnables.party;
import java.util.regex.Matcher; import com.gmail.nossr50.config.Config;
import java.util.regex.Pattern; import com.gmail.nossr50.datatypes.party.Party;
import com.gmail.nossr50.locale.LocaleLoader;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin; import org.bukkit.plugin.Plugin;
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitRunnable;
import com.gmail.nossr50.config.Config; import java.util.regex.Matcher;
import com.gmail.nossr50.datatypes.party.Party; import java.util.regex.Pattern;
import com.gmail.nossr50.locale.LocaleLoader;
public class PartyChatTask extends BukkitRunnable { public class PartyChatTask extends BukkitRunnable {
private Plugin plugin; 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));
} }
} }