Bugfix #3 - Money detection while using HeroChat

pull/3/HEAD
KaiKikuchi 2015-09-15 17:41:15 +02:00
parent 3de8bc7962
commit fdc9e0cab9
1 changed files with 1 additions and 1 deletions

View File

@ -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);