From 15b12e6299e07a29ee3aa142753111abcff0101d Mon Sep 17 00:00:00 2001 From: Taah Date: Mon, 28 Aug 2023 04:35:32 -0700 Subject: [PATCH] make our chat handler come first --- server/src/main/java/dev/plex/listener/impl/ChatListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/dev/plex/listener/impl/ChatListener.java b/server/src/main/java/dev/plex/listener/impl/ChatListener.java index 323db76..23e0198 100644 --- a/server/src/main/java/dev/plex/listener/impl/ChatListener.java +++ b/server/src/main/java/dev/plex/listener/impl/ChatListener.java @@ -16,6 +16,7 @@ import net.kyori.adventure.text.event.ClickEvent; import net.kyori.adventure.text.format.NamedTextColor; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.jetbrains.annotations.NotNull; import java.util.UUID; @@ -36,7 +37,7 @@ public class ChatListener extends PlexListener public static BiConsumer PRE_RENDERER = ChatListener::defaultChatProcessing; private final PlexChatRenderer renderer = new PlexChatRenderer(); - @EventHandler + @EventHandler(priority = EventPriority.LOWEST) public void onChat(AsyncChatEvent event) { PlexPlayer plexPlayer = plugin.getPlayerCache().getPlexPlayerMap().get(event.getPlayer().getUniqueId());