diff --git a/src/main/java/net/minestom/server/chat/ColoredText.java b/src/main/java/net/minestom/server/chat/ColoredText.java index dabdd1ea3..4ccc06d0c 100644 --- a/src/main/java/net/minestom/server/chat/ColoredText.java +++ b/src/main/java/net/minestom/server/chat/ColoredText.java @@ -69,7 +69,7 @@ public class ColoredText extends JsonMessage { */ @NotNull public static ColoredText ofLegacy(@NotNull String message, char colorChar) { - final String legacy = toLegacy(message, colorChar); + final String legacy = toFormat(message, colorChar); return of(legacy); } @@ -107,7 +107,7 @@ public class ColoredText extends JsonMessage { */ @NotNull public ColoredText appendLegacy(@NotNull String message, char colorChar) { - final String legacy = toLegacy(message, colorChar); + final String legacy = toFormat(message, colorChar); return of(legacy); } @@ -326,7 +326,8 @@ public class ColoredText extends JsonMessage { * @param colorChar the char used before the color code * @return the converted legacy text */ - private static String toLegacy(@NotNull String message, char colorChar) { + @NotNull + private static String toFormat(@NotNull String message, char colorChar) { StringBuilder result = new StringBuilder(); for (int i = 0; i < message.length(); i++) {