1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-11 17:15:07 +02:00

Compiled regex is faster.

This commit is contained in:
KHobbits
2012-01-18 23:35:30 +00:00
parent 36bc1adf83
commit a10f6850e5
5 changed files with 19 additions and 8 deletions

View File

@@ -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
{