Skip to content

Commit 57d1844

Browse files
authored
fix NoClassDefFoundError in spigot-based server
1 parent 73e1650 commit 57d1844

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/org/mvplugins/multiverse/core/utils/text/ChatTextFormatter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public final class ChatTextFormatter {
1818
private static final TextFormatter wrapper;
1919

2020
static {
21-
if (ReflectHelper.hasClass("net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer")) {
21+
if (ReflectHelper.hasClass("net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer")
22+
&& ReflectHelper.hasClass("net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer")) {
2223
wrapper = new AdventureTextFormatter();
2324
} else {
2425
wrapper = new ChatColorTextFormatter();

0 commit comments

Comments
 (0)