mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 04:23:02 +00:00
Strip colors from chat, if the user does not have the permission.
This commit is contained in:
parent
0fb07d4cc1
commit
26d63f3666
2 changed files with 4 additions and 1 deletions
|
@ -478,7 +478,7 @@ public class Util
|
|||
}
|
||||
return buf.toString();
|
||||
}
|
||||
private static transient final Pattern COLOR_PATTERN = Pattern.compile("(?i)\u00A7[0-9A-F]");
|
||||
private static transient final Pattern COLOR_PATTERN = Pattern.compile("\u00A7+[0-9A-FKa-fk]");
|
||||
|
||||
public static String stripColor(final String input)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue