@SuppressWarnings("deprecation")
	public String findItemName(ItemStack item) {
		// Used to find the name in the config so we can grab data of off it.
		int dataValue = item.getDurability();

		if (plugin.getResManager().shouldIgnoreDataValue(item) || item.getDurability() == 0) {
			dataValue = -1;
		}

		for (String name : this.restrictionsConfig.getConfig().getKeys(false)) {
			if (this.getItemID(name) == item.getTypeId() && this.getDataValue(name) == dataValue) {
				return name;
			}
		}

		return null;
	}