[~] 修复消息无法获取的错误
1. 提高了消息事件获取的优先级
This commit is contained in:
parent
ae6ef76f5e
commit
8b841cb365
@ -1,6 +1,7 @@
|
|||||||
package ren.taske.nativebot.bot.chatting;
|
package ren.taske.nativebot.bot.chatting;
|
||||||
|
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
import org.bukkit.event.player.AsyncPlayerChatEvent;
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ public class MinecraftMessage implements Listener {
|
|||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler(priority = EventPriority.HIGHEST)
|
||||||
public void message(AsyncPlayerChatEvent evt) {
|
public void message(AsyncPlayerChatEvent evt) {
|
||||||
plugin.onMinecraftMessage(evt);
|
plugin.onMinecraftMessage(evt);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user