public static boolean containsArmor(Inventory inventory) {
		boolean contains = false;
		for(ItemStack itemstack : inventory.getContents())
			if(isArmor(itemstack)) 
				contains = true;
		
		if(inventory.getType() == InventoryType.PLAYER) {
			PlayerInventory playerinventory = (PlayerInventory) inventory;
			for(ItemStack itemstack : playerinventory.getArmorContents())
				if(isArmor(itemstack)) 
					contains = true;
		}
		
		return contains;
	}