public void itemGiver(Chest chest) {
		chest.getInventory().clear();
		Inventory inv = chest.getInventory();
		List<String> items = this.pl.getConfig().getStringList("configurations." + this.pl.ChosenConfiguration + ".items");
		for (String item : items){
			ItemStack newItem = parseItem(item);

			if (newItem != null) {
				inv.addItem(new ItemStack[] { newItem });
			}

			if (this.ChosenItems == this.pl.getConfig().getInt("configurations." + this.pl.ChosenConfiguration + ".maximum-items")){
				break;
			}
		}
		if (this.ChosenItems <= this.pl.getConfig().getInt("configurations." + this.pl.ChosenConfiguration + ".minimum-items") - 1) {
			this.ChosenItems = 0;
			returnItems(chest);
			return;
		}
		this.ChosenItems = 0;
		chest.getInventory().setContents(inv.getContents());
		this.pl.itemchests.put(chest.getLocation(), inv);
	}