summaryrefslogtreecommitdiffstats
path: root/EssentialsChat/src/com/earth2me/essentials
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-01-18 23:35:30 +0000
committerKHobbits <rob@khobbits.co.uk>2012-01-18 23:35:30 +0000
commita10f6850e52c1a83530591fdfb77bc37aea604ff (patch)
tree797854acb58a65bbee8fca149e622fd6a6a15c99 /EssentialsChat/src/com/earth2me/essentials
parent36bc1adf8334d64f6a8dfb96107b32758d3ac1fa (diff)
downloadEssentials-a10f6850e52c1a83530591fdfb77bc37aea604ff.tar
Essentials-a10f6850e52c1a83530591fdfb77bc37aea604ff.tar.gz
Essentials-a10f6850e52c1a83530591fdfb77bc37aea604ff.tar.lz
Essentials-a10f6850e52c1a83530591fdfb77bc37aea604ff.tar.xz
Essentials-a10f6850e52c1a83530591fdfb77bc37aea604ff.zip
Compiled regex is faster.
Diffstat (limited to 'EssentialsChat/src/com/earth2me/essentials')
-rw-r--r--EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java
index afb0c2dfd..9419416b0 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerLowest.java
@@ -36,7 +36,7 @@ public class EssentialsChatPlayerListenerLowest extends EssentialsChatPlayer
*/
if (user.isAuthorized("essentials.chat.color"))
{
- event.setMessage(event.getMessage().replaceAll("&([0-9a-fk])", "\u00a7$1"));
+ event.setMessage(Util.replaceColor(event.getMessage()));
}
else
{