From fdc9e0cab9039558673fffa2994aaa82d97a4718 Mon Sep 17 00:00:00 2001 From: KaiKikuchi Date: Tue, 15 Sep 2015 17:41:15 +0200 Subject: [PATCH] Bugfix #3 - Money detection while using HeroChat --- .../java/org/maxgamer/quickshop/Listeners/HeroChatListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/quickshop/Listeners/HeroChatListener.java b/src/main/java/org/maxgamer/quickshop/Listeners/HeroChatListener.java index 4d33414..f190981 100644 --- a/src/main/java/org/maxgamer/quickshop/Listeners/HeroChatListener.java +++ b/src/main/java/org/maxgamer/quickshop/Listeners/HeroChatListener.java @@ -22,7 +22,7 @@ public class HeroChatListener implements Listener { @EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST) public void onHeroChat(ChannelChatEvent e) { - if (!plugin.getShopManager().getActions().containsKey(e.getSender().getName())) + if (!plugin.getShopManager().getActions().containsKey(e.getSender().getPlayer().getUniqueId())) return; plugin.getShopManager().handleChat(e.getSender().getPlayer(), e.getMessage()); e.setResult(Result.FAIL);