it can't check the item name if the item has other nbt (like if it was renamed by anvil, it will not work)
i have also tried
Code:
command /skriptitemchecktest:
permission: skript.thing
trigger:
if player has 1 iron ingot with name "test":
message "you have 1 iron ingot" to the player
Code:
command /skriptitemchecktest2:
permission: skript.thing
trigger:
if player's inventory contains iron ingot named "test":
message "you have 1 iron ingot" to the player