From 8b841cb3651eafc715c9a9e72018c7410f007ee0 Mon Sep 17 00:00:00 2001 From: Taskeren Date: Wed, 7 Aug 2019 21:16:35 +0800 Subject: [PATCH] =?UTF-8?q?[~]=20=E4=BF=AE=E5=A4=8D=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 提高了消息事件获取的优先级 --- .../ren/taske/nativebot/bot/chatting/MinecraftMessage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }