1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2026-06-05 09:01:39 +08:00

支持支持Hex颜色!(1.16以上版本) 格式 &(#颜色代码) 。

This commit is contained in:
carm
2021-09-17 17:39:48 +08:00
parent 8bf19a69f8
commit b6319eec78
10 changed files with 85 additions and 38 deletions
+14
View File
@@ -0,0 +1,14 @@
import cc.carm.plugin.userprefix.util.ColorParser;
import org.junit.Test;
public class ColorParseTest {
@Test
public void onTest() {
String testString = "&f爱的人永远不爱我,为何付出得到的只有&(#aaaaaa)背叛。";
System.out.println(ColorParser.parseHexColor(testString));
}
}