From 2dd1775d9af94adc466223161946e4e048edac79 Mon Sep 17 00:00:00 2001 From: JamieSinn Date: Fri, 11 Dec 2015 23:52:14 -0500 Subject: [PATCH] Remove regex replace, does nothing --- .../nossr50/runnables/commands/MctopCommandDisplayTask.java | 6 +++--- .../com/gmail/nossr50/runnables/party/PartyChatTask.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java b/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java index 5c2c571fe..3f8d1cc10 100644 --- a/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/commands/MctopCommandDisplayTask.java @@ -54,13 +54,13 @@ public class MctopCommandDisplayTask extends BukkitRunnable { if(sender instanceof Player) sender.sendMessage(LocaleLoader.getString("Commands.PowerLevel.Leaderboard")); else - sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.PowerLevel.Leaderboard")).replaceAll("\\033\\[m", "")); + sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.PowerLevel.Leaderboard"))); } else { if(sender instanceof Player) sender.sendMessage(LocaleLoader.getString("Commands.Skill.Leaderboard", skill.getName())); else - sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.Skill.Leaderboard", skill.getName())).replaceAll("\\033\\[m", "")); + sender.sendMessage(ChatColor.stripColor(LocaleLoader.getString("Commands.Skill.Leaderboard", skill.getName()))); } int place = (page * 10) - 9; @@ -70,7 +70,7 @@ public class MctopCommandDisplayTask extends BukkitRunnable { // 01. Playername - skill value // 12. Playername - skill value sender.sendMessage(String.format("%2d. %s%s - %s%s", place, sender instanceof Player ? ChatColor.GREEN : "", - stat.name, sender instanceof Player ? ChatColor.WHITE : "", stat.statVal).replaceAll("\\033\\[m", "")); + stat.name, sender instanceof Player ? ChatColor.WHITE : "", stat.statVal)); place++; } } 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 6d2c3a7af..ff4b4999f 100644 --- a/src/main/java/com/gmail/nossr50/runnables/party/PartyChatTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/party/PartyChatTask.java @@ -45,6 +45,6 @@ public class PartyChatTask extends BukkitRunnable { } } - plugin.getServer().getConsoleSender().sendMessage(ChatColor.stripColor("[mcMMO] [P]<" + party.getName() + ">" + message).replaceAll("\\033\\[m", "")); + plugin.getServer().getConsoleSender().sendMessage(ChatColor.stripColor("[mcMMO] [P]<" + party.getName() + ">" + message)); } }