diff --git a/base/color/pom.xml b/base/color/pom.xml index d7b672d..6c7ecfe 100644 --- a/base/color/pom.xml +++ b/base/color/pom.xml @@ -6,7 +6,7 @@ cc.carm.lib easyplugin-parent - 1.5.11 + 1.5.12 ../../pom.xml diff --git a/base/color/src/test/java/ColorParseTest.java b/base/color/src/test/java/ColorParseTest.java index 8ea1e62..d017233 100644 --- a/base/color/src/test/java/ColorParseTest.java +++ b/base/color/src/test/java/ColorParseTest.java @@ -22,29 +22,4 @@ public class ColorParseTest { System.out.println(clear("&f测试&<#AAAAAA>清理颜色代码&<#111111> &&这样应该&(#666666)不被影响 &f。")); } - @Test - public void formatReadTest() { - LinkedHashMap formats = new LinkedHashMap<>(); - String text = "&k&l &m&1我&k爱你爱你爱你&o吗?"; - Matcher matcher = ColorParser.FORMAT_PATTERN.matcher(text); - while (matcher.find()) { - String code = matcher.group(); - formats.put(matcher.start(), code); - text = matcher.replaceFirst(""); - matcher.reset(text); - } - - formats.forEach((index, code) -> System.out.println(index + " -> " + code)); - - String[] parts = text.split(""); - StringBuilder builder = new StringBuilder(); - for (int i = 0; i < parts.length; i++) { - String format = formats.get(i); - if (format != null) builder.append(ColorParser.parseBaseColor(format)); - builder.append(parts[i]); - } - - System.out.println(builder); - } - } diff --git a/base/command-alias/pom.xml b/base/command-alias/pom.xml index cc5aa5b..d0675fd 100644 --- a/base/command-alias/pom.xml +++ b/base/command-alias/pom.xml @@ -6,7 +6,7 @@ cc.carm.lib easyplugin-parent - 1.5.11 + 1.5.12 ../../pom.xml diff --git a/base/command/pom.xml b/base/command/pom.xml index d1d041a..a6187a1 100644 --- a/base/command/pom.xml +++ b/base/command/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/base/gui/pom.xml b/base/gui/pom.xml index e0ada85..183eec0 100644 --- a/base/gui/pom.xml +++ b/base/gui/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/base/main/pom.xml b/base/main/pom.xml index 8fb85bc..be7b5a1 100644 --- a/base/main/pom.xml +++ b/base/main/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/base/messages/pom.xml b/base/messages/pom.xml index 4db8d4c..bba3b8d 100644 --- a/base/messages/pom.xml +++ b/base/messages/pom.xml @@ -6,7 +6,7 @@ cc.carm.lib easyplugin-parent - 1.5.11 + 1.5.12 ../../pom.xml diff --git a/base/storage/pom.xml b/base/storage/pom.xml index 0d9d5a3..5cf812b 100644 --- a/base/storage/pom.xml +++ b/base/storage/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/base/user/pom.xml b/base/user/pom.xml index 0848a02..4911834 100644 --- a/base/user/pom.xml +++ b/base/user/pom.xml @@ -6,7 +6,7 @@ cc.carm.lib easyplugin-parent - 1.5.11 + 1.5.12 ../../pom.xml diff --git a/base/utils/pom.xml b/base/utils/pom.xml index 42a7ef9..9f620d3 100644 --- a/base/utils/pom.xml +++ b/base/utils/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/collection/all/pom.xml b/collection/all/pom.xml index 51f3ac0..51ae26f 100644 --- a/collection/all/pom.xml +++ b/collection/all/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/collection/bom/pom.xml b/collection/bom/pom.xml index 31575c7..f86a5e0 100644 --- a/collection/bom/pom.xml +++ b/collection/bom/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/collection/common/pom.xml b/collection/common/pom.xml index a9dca88..2b7f711 100644 --- a/collection/common/pom.xml +++ b/collection/common/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/extension/gh-checker/pom.xml b/extension/gh-checker/pom.xml index e565c09..d89893d 100644 --- a/extension/gh-checker/pom.xml +++ b/extension/gh-checker/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/extension/papi/pom.xml b/extension/papi/pom.xml index 6c28b7f..86c7376 100644 --- a/extension/papi/pom.xml +++ b/extension/papi/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/extension/vault/pom.xml b/extension/vault/pom.xml index 4757b30..3fd1cde 100644 --- a/extension/vault/pom.xml +++ b/extension/vault/pom.xml @@ -5,7 +5,7 @@ easyplugin-parent cc.carm.lib - 1.5.11 + 1.5.12 ../../pom.xml 4.0.0 diff --git a/pom.xml b/pom.xml index dc88bec..fae40f8 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ cc.carm.lib easyplugin-parent pom - 1.5.11 + 1.5.12 base/color base/utils