@EventHandler(priority = EventPriority.HIGH)
    public void onChestClose(InventoryCloseEvent e) {
        if (e.getPlayer() instanceof Player) {
            Player p = (Player) e.getPlayer();
            ButtonAccess b = new ButtonAccess((Player) e.getPlayer(), Action.PHYSICAL, wand, transactions, packages, inventories, packageMaker, pickup, null, null);
            b.onChestClose(e.getInventory(), (Player) e.getPlayer(), packages, inventories);
            packages = b.getPackages();
            packageMaker = b.getPackageMakers();
            pickup = b.getPickups();
            transactions = b.getTransactions();
            inventories = b.getInventories();
            if (ChestDelivery.autoPackage) {
                if (e.getInventory().getName().equals(Access.PACKAGEMAKERNAME)) {
                    PackageBlock packet = new PackageBlock();
                    if (packages.containsKey(p.getUniqueId())) {
                        packet = packages.get(p.getUniqueId());
                    }
                    packet.addPackage(b.createPackage());
                    packages.put(p.getUniqueId(), packet);
                    packages = Access.removeNullPackages(p, packages);
                }
            }

        }
    }