i have this script which works with skript but it doesnt display hello message when i do it, i removed the "if diamond sword is enchanted with sharpness 5" part and it worked, but i am trying to do it with enchants, can someone help me?
on inventory click:
if event-inventory = (metadata tag "pickaxe" of player):
if index of event-slot is 11:
if player has diamond sword:
if diamond sword is enchanted with sharpness 5:
send "hello" to player