Uncancel interact event on shop open

This commit is contained in:
Eric 2019-12-15 11:47:16 +01:00
parent 57ba92c71b
commit 6d1274ef18

View File

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