mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-18 00:25:12 +01:00
Uncancel interact event on shop open
This commit is contained in:
parent
57ba92c71b
commit
6d1274ef18
@ -68,9 +68,7 @@ public class ChestInteractListener implements Listener {
|
||||
} else if (flag instanceof OpenFlag) {
|
||||
ShopOpenEvent event = new ShopOpenEvent(player, shop);
|
||||
plugin.getServer().getPluginManager().callEvent(event);
|
||||
if (event.isCancelled()) {
|
||||
e.setCancelled(true);
|
||||
}
|
||||
e.setCancelled(event.isCancelled());
|
||||
} else if (flag instanceof CreateFlag) {
|
||||
e.setCancelled(true);
|
||||
player.sendMessage("§cThis chest already is a shop."); // TODO: i18n
|
||||
|
Loading…
Reference in New Issue
Block a user