Fix #133

Former-commit-id: 33497d496be08d94a1ad3f880c86c8e43844f2f5 [formerly 37a5ef06650fa175a8960f94dc5952525031c802]
Former-commit-id: 28147a1388e406efd78f19e0833bfb6935826cb8
This commit is contained in:
Ghost_chu authored and GitHub committed 2019-07-03 18:00:44 +08:00
1 parent 3d0f15ff09
commit e7e64c7970
1 file changed
+2 -2
@@ -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);
}
}
}