Upload files to "src/openonyx/events"
This commit is contained in:
1 parent
1337b576d4
commit
cb12563f5b
5 files changed
+306
No files matched your search
@@ -0,0 +1,18 @@
|
||||
package openonyx.events;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
public final class ChatFormattingUtils {
|
||||
private static final Pattern PATTERN = Pattern.compile("(?i)§[0-9A-FK-OR]");
|
||||
|
||||
public static String L(String string) {
|
||||
if (string != null && string.indexOf(167) >= 0) {
|
||||
return PATTERN.matcher(string).replaceAll("").replace("§", "");
|
||||
} else {
|
||||
return string == null ? "" : string;
|
||||
}
|
||||
}
|
||||
|
||||
private ChatFormattingUtils() {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user