Skip to content

Commit 642f3ab

Browse files
authored
Merge pull request #3320 from MrXiaoM/patch-1
Fix adventure dep in spigot-based server
2 parents 73e1650 + 57d1844 commit 642f3ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)