public void saveItem(ItemStack toSave, ConfigurationSection configSection, String searchPrefix) {
        if (toSave != null && toSave.getItemMeta() != null) {
            configSection.set(searchPrefix + "name", toSave.getItemMeta().getDisplayName().replace(ChatColor.COLOR_CHAR, '&'));
            configSection.set(searchPrefix + "material", toSave.getType().name());
            configSection.set(searchPrefix + "materialData", toSave.getDurability());
            configSection.set(searchPrefix + "amount", toSave.getAmount());

            configSection.set(searchPrefix + "lore", toSave.getItemMeta().getLore());
        }
    }