forked from MinecraftUtilities/Backend
fix html motd
This commit is contained in:
parent
1d597d5d92
commit
f3b1104e93
@ -60,7 +60,7 @@ public final class ColorUtils {
|
|||||||
@NonNull
|
@NonNull
|
||||||
public static String toHTML(@NonNull String input) {
|
public static String toHTML(@NonNull String input) {
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("<span>"); // Open the span tag
|
builder.append("<p>"); // Open the span tag
|
||||||
boolean nextIsColor = false; // Is the next char a color code?
|
boolean nextIsColor = false; // Is the next char a color code?
|
||||||
|
|
||||||
for (char character : input.toCharArray()) {
|
for (char character : input.toCharArray()) {
|
||||||
@ -77,7 +77,7 @@ public final class ColorUtils {
|
|||||||
}
|
}
|
||||||
builder.append(character); // Append the char...
|
builder.append(character); // Append the char...
|
||||||
}
|
}
|
||||||
builder.append("</span>"); // Close the span tag
|
builder.append("</p>"); // Close the span tag
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user