From e7e64c79708c30a05ac1e574426aaa023fc59bd3 Mon Sep 17 00:00:00 2001 From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com> Date: Wed, 3 Jul 2019 18:00:44 +0800 Subject: [PATCH] Fix #133 Fix #133 Former-commit-id: 33497d496be08d94a1ad3f880c86c8e43844f2f5 [formerly 37a5ef06650fa175a8960f94dc5952525031c802] Former-commit-id: 28147a1388e406efd78f19e0833bfb6935826cb8 --- .../java/org/maxgamer/quickshop/Listeners/ChatListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Listeners/ChatListener.java b/src/main/java/org/maxgamer/quickshop/Listeners/ChatListener.java index a750cbba5..a339e4b66 100644 --- a/src/main/java/org/maxgamer/quickshop/Listeners/ChatListener.java +++ b/src/main/java/org/maxgamer/quickshop/Listeners/ChatListener.java @@ -15,7 +15,7 @@ import org.maxgamer.quickshop.Util.Util; public class ChatListener implements Listener { private QuickShop plugin; - @EventHandler(priority = EventPriority.LOWEST) + @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onChat(AsyncPlayerChatEvent e) { if (e.isCancelled() && plugin.getConfig().getBoolean("shop.ignore-cancel-chat-event")) { Util.debugLog("Ignored a chat event (Canceled by another plugin.)"); @@ -29,4 +29,4 @@ public class ChatListener implements Listener { plugin.getShopManager().handleChat(e.getPlayer(), e.getMessage()); e.setCancelled(true); } -} \ No newline at end of file +}