Skip to content

Commit 0a60199

Browse files
committed
[2.1.0] Fix hex color
1 parent 58febe0 commit 0a60199

File tree

1 file changed

+3
-3
lines changed
  • project/runtime-bukkit/src/main/java/me/arasple/mc/trchat/util/color

1 file changed

+3
-3
lines changed

project/runtime-bukkit/src/main/java/me/arasple/mc/trchat/util/color/HexUtils.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ private static int findStop(String content, int searchAfter) {
247247
}
248248

249249
private static String cleanHex(String hex) {
250-
if (hex.startsWith("<") || hex.startsWith("{")) {
251-
return hex.substring(1, hex.length() - 1);
252-
} else if (hex.startsWith("&")) {
250+
if (hex.startsWith("&{")) {
251+
return hex.substring(2, hex.length() - 1);
252+
} else if (hex.startsWith("&#")) {
253253
return hex.substring(1);
254254
} else {
255255
return hex;

0 commit comments

Comments
 (0)