Add Nick.java

This commit is contained in:
Len committed 2022-09-27 00:02:27 +02:00
1 parent 00f4e00011
commit a15b13e8ac
2 files changed
+108

No files matched your search

@@ -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}(<)?(>)?}", "");
}
}