So im trying to make a kit creator with a chest interface but whenever i try to delete a gui it will still open it again and i can delete it endless times, basically the delete gui passage does nothing
command /editkit <string>:
permission: mel.createkit
trigger:
if gui "%arg-1%" is set:
open gui "%arg-1%" to player
else:
create gui "%arg-1%" with chest with 3 rows named "&2Edit Kit ""&a&l%arg-1%&2"""
open last created gui to player
command /deletekit <string>:
permission: mel.createkit
trigger:
if gui "%arg-1%" is set:
delete gui "%arg-1%"
send "deleted kit %arg-1%"
else:
send "this kit doesn't exist"
So im trying to make a kit creator with a chest interface but whenever i try to delete a gui it will still open it again and i can delete it endless times, basically the delete gui passage does nothing