Add Nick.java

This commit is contained in:
Len
2022-09-27 00:02:27 +02:00
parent 00f4e00011
commit a15b13e8ac
2 changed files with 108 additions and 0 deletions
@@ -298,4 +298,13 @@ public class Utility {
return miniMessage;
}
public static String removeAllColors(String string) {
for (String colorCodes : colors.keySet()) {
string = string.replace(colorCodes, "");
}
return string.replaceAll("\\{#[A-Fa-f0-9]{6}(<)?(>)?}", "");
}
}