Add Nick.java
This commit is contained in:
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}(<)?(>)?}", "");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user