1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-18 01:18:54 +00:00

Lowered ChatListener priority in order to fix an issue with

Mineverse-Chat
This commit is contained in:
KaiKikuchi 2015-09-22 09:32:17 +02:00
parent 67e475d63f
commit 094eabed55

View File

@ -1,6 +1,7 @@
package org.maxgamer.quickshop.Listeners; package org.maxgamer.quickshop.Listeners;
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;
import org.maxgamer.quickshop.QuickShop; import org.maxgamer.quickshop.QuickShop;
@ -17,7 +18,7 @@ public class ChatListener implements Listener {
this.plugin = plugin; this.plugin = plugin;
} }
@EventHandler @EventHandler(priority = EventPriority.LOWEST)
public void onChat(final AsyncPlayerChatEvent e) { public void onChat(final AsyncPlayerChatEvent e) {
if (!plugin.getShopManager().getActions().containsKey(e.getPlayer().getUniqueId())) { if (!plugin.getShopManager().getActions().containsKey(e.getPlayer().getUniqueId())) {
return; return;