Hello, I am trying to make a battlepass how could i refresh a gui like:
on inventory click:
if name of event-inventory is "&e&lBattlePass":
if index of event-slot = 10:
cancel event
set slot 10 of {battlepassgui} to light green stained glass named "&aClaimed!" with lore "&aYou have already claimed this item"
# refresh the gui
I could use close player's inventory but it will have loads of code and i dont want to be copy and pasting for over an hour
is there another way like refresh {battlepassgui}