im really dumb and idk wtf im doing, theres no error but it doesnt work
command /clickeropen:
trigger:
create a gui with id "{gui-%player's uuid%}" with virtual chest inventory with 3 rows named "Ranks":
make gui slot 22 with barrier named "&c&lClose"
open gui with id "{gui-%player's uuid%}" to player
on inventory click:
if name of event-inventory is "Ranks":
if event-slot is 22:
close player's inventory