From 085e410ab15af08086b334da73e94c2c194b77ea Mon Sep 17 00:00:00 2001 From: Intelli Date: Fri, 17 Dec 2021 11:31:04 -0700 Subject: [PATCH] Fixed NoClassDefFoundError when using Paper 1.16 (#120) --- src/main/java/net/coreprotect/listener/ListenerHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/coreprotect/listener/ListenerHandler.java b/src/main/java/net/coreprotect/listener/ListenerHandler.java index 13c5d5b..6b529ba 100644 --- a/src/main/java/net/coreprotect/listener/ListenerHandler.java +++ b/src/main/java/net/coreprotect/listener/ListenerHandler.java @@ -104,7 +104,7 @@ public final class ListenerHandler { // Paper Listeners / Fallbacks try { - Class.forName("io.papermc.paper.event.player.AsyncChatEvent"); + Class.forName("net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer"); pluginManager.registerEvents(new PaperChatListener(), plugin); } catch (Exception e) {