diff --git a/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java b/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java index a03d75d..0b513bd 100644 --- a/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java +++ b/src/main/java/ren/taske/nativebot/bot/chatting/MinecraftMessage.java @@ -1,6 +1,7 @@ package ren.taske.nativebot.bot.chatting; import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; @@ -14,7 +15,7 @@ public class MinecraftMessage implements Listener { this.plugin = plugin; } - @EventHandler + @EventHandler(priority = EventPriority.HIGHEST) public void message(AsyncPlayerChatEvent evt) { plugin.onMinecraftMessage(evt); }