Closed FlashLight34 closed 8 years ago
In your playerinterractevent add this for the doublechest line 120 of playerlistener (onclick)
/** * Detect double chest */ if (shop == null && b.getType() == Material.CHEST) { Block attached = Util.getSecondHalf(b); if (attached != null) { shop = plugin.getShopManager().getShop(attached.getLocation()); } }
before
// Purchase handling if (shop != null && p.hasPermission("quickshop.use") && (plugin.sneakTrade == false || p.isSneaking())) { shop.onClick();
In your playerinterractevent add this for the doublechest line 120 of playerlistener (onclick)
before