mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
Bugfix #3 - Money detection while using HeroChat
This commit is contained in:
parent
3de8bc7962
commit
fdc9e0cab9
@ -22,7 +22,7 @@ public class HeroChatListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
@EventHandler(ignoreCancelled = true, priority = EventPriority.LOWEST)
|
||||||
public void onHeroChat(ChannelChatEvent e) {
|
public void onHeroChat(ChannelChatEvent e) {
|
||||||
if (!plugin.getShopManager().getActions().containsKey(e.getSender().getName()))
|
if (!plugin.getShopManager().getActions().containsKey(e.getSender().getPlayer().getUniqueId()))
|
||||||
return;
|
return;
|
||||||
plugin.getShopManager().handleChat(e.getSender().getPlayer(), e.getMessage());
|
plugin.getShopManager().handleChat(e.getSender().getPlayer(), e.getMessage());
|
||||||
e.setResult(Result.FAIL);
|
e.setResult(Result.FAIL);
|
||||||
|
Loading…
Reference in New Issue
Block a user