public static boolean isArmor(ItemStack itemstack) {
		if(itemstack != null) {
			Material material = itemstack.getType();
			if(material == Material.LEATHER_HELMET || material == Material.LEATHER_CHESTPLATE
					|| material == Material.LEATHER_LEGGINGS || material == Material.LEATHER_BOOTS
					|| material == Material.GOLD_HELMET || material == Material.GOLD_CHESTPLATE
					|| material == Material.GOLD_LEGGINGS || material == Material.GOLD_BOOTS
					|| material == Material.CHAINMAIL_HELMET || material == Material.CHAINMAIL_CHESTPLATE
					|| material == Material.CHAINMAIL_LEGGINGS || material == Material.CHAINMAIL_BOOTS
					|| material == Material.IRON_HELMET || material == Material.IRON_CHESTPLATE
					|| material == Material.IRON_LEGGINGS || material == Material.IRON_BOOTS
					|| material == Material.DIAMOND_HELMET || material == Material.DIAMOND_CHESTPLATE
					|| material == Material.DIAMOND_LEGGINGS || material == Material.DIAMOND_BOOTS) {
				if(itemstack.getItemMeta().getDisplayName().equals(displayname) && itemstack.getItemMeta().getLore().equals(lore))
					return true;	
				else 
					return false;
			}
			else 
				return false;	
		}
		else 
			return false;
	}