Basically I'm working on skript and I've got
and I want to detect if the item is in a gui or not, so basically stop the event if the event-slot is in the player's inventory. I can't use the item name because the item name can be set by players in-game and the amount of rows might change. There is a variable ({rows}) that stores the amount of rows in the gui.
Thank you in advance.
Code:
On inventory click:
Thank you in advance.