mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-30 14:33:24 +01:00
chore: pre-commit changes [skip ci]
This commit is contained in:
parent
166d48bb90
commit
60085d2c77
@ -64,7 +64,11 @@ public class Lang {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String convertColors(String s) {
|
public static String convertColors(String s) {
|
||||||
return s.replaceAll("&#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])", "&x&$1&$2&$3&$4&$5&$6").replaceAll("&([0-9a-fA-Fdwrk-ox#])", "\u00A7$1");
|
return s
|
||||||
|
.replaceAll(
|
||||||
|
"&#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])",
|
||||||
|
"&x&$1&$2&$3&$4&$5&$6")
|
||||||
|
.replaceAll("&([0-9a-fA-Fdwrk-ox#])", "\u00A7$1");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String translateInsertVariables(String s, Object... args) {
|
public static String translateInsertVariables(String s, Object... args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user