public void onChestClose(Inventory inv, Player p, HashMap<UUID, PackageBlock> packages, HashMap<UUID, Inventory> inventories) {
        switch (inv.getName().replaceAll("\u200b", "")) {
            case PACKAGENAME:
                ArrayList<ItemStack> contents = new ArrayList<>();
                for (ItemStack i : inv.getContents()) {
                    if (i != null) {
                        if (!i.isSimilar(Mechanics.createItem(Material.CHEST, 1, (short) 0, PACKAGEPAGENAME, "Press to return to " + PACKAGEPAGENAME))) {
                            contents.add(i);
                        }
                    }
                }
                packages.get(p.getUniqueId()).replacePackage(Mechanics.getRepeatTimes(inv.getName(), ChatColor.COLOR_CHAR + "\u200b"), com.yahoo.williamzhang890.transaction.Package.parsePackage(contents));
            case PACKAGEMAKERNAME:
                p.playSound(p.getLocation(), Sound.CHEST_CLOSE, 1, 0f);
                break;
        }
    }