#DeluxeMenus - One GUI, but everytime you open it other items are in

1 messages · Page 1 of 1 (latest)

hidden pine
#

I want to make a GUI where people will be warned when they buy something from the store. However I don't wanna make a different warning GUI for every item. Can I just make one GUI for everything and use code so the gui knows what item the player clicked on?

#

So when a player clicks in GUI 1 on the dirt, it will open GUI 2 and then the dirt will be in the second GUI again, however if a player clicks in GUI 1 on the stone it will open GUI 2 and displays a stone

wanton stirrup
#

if you are on 1.14+ you can use the [meta] action and set the material as value for a key

#

[meta] set someKeyHere STONE iirc (check the wiki)
and to access it, %deluxemenus_meta_someKeyHere_STRING%