Please someone help me ive been stuck on this for weeks now there has to be a solution somewhere it just doesnt make sense
Intended outcome:
I close the gui
Class Gui reopens
I close the gui
Class Gui reopens
Continued
Reality:
I close the gui
Class Gui reopens
I close the gui
Nothing.
Event:
on inventory close:
if name of event-inventory contains "Choose your class":
classgui(player)
Function:
function classgui(p: player):
set {ingui::%uuid of {_p}%} to {_p}'s uuid
if team of {_p} is {r} or {b}:
if team of {_p} is {r}:
set {_guinamecolor} to "&4&l"
if team of {_p} is {b}:
set {_guinamecolor} to "&1&l"
else:
set {_guinamecolor} to "&f&l"
set {_classgui} to a new chest inventory with 1 row with name "%{_guinamecolor}%Choose your class"

