i need it so it runs 2 commands from 1 slot in a GUI! if player has permission "{@remove}": format slot 40 of player with {@removetitle} named "{@removename}" with lore "{@removetitlelore}" to close then run [execute console command "manudelv %player% {@suffixorprefix}"] on click of format slot 40 message "{@removemsg}" to player This does not work, any help? Thanks
Maybe you can create an extra command that runs the two commands you need, then you put the extra command in [make player execute "command"] I cant understand what you need Xd
It's hard to see what your code is without using the code function in Spigot Forums. To answer your question, I would suggest the usage of the skQuery skExtension (I suggest @LimeGlass's fork for it) to format a GUI. It uses the following syntax: Code (Text): #conditional here open chest with 4 rows named "{@option1}" to the player wait 2 ticks format slot 0 of player with {@option2} named "{@option3}" with lore "" to close then run [lambda or predicate here] Since you want one effect to run two lambdas, I would use this: Code (Text): format slot... [do[make player execute command "/me Hi"]->[message "§aSuccess!"]]
if player has permission "{@remove}": format slot 40 of player with {@removetitle} named "{@removename}" with lore "{@removetitlelore}" to close then run [do[make console execute command "/manudelv %player% {@suffixorprefix}"]->[message "{@removemsg}"]] this does not work.
Code (Text): command /2commands: trigger: execute console command "/example" execute console command "/example2"
This MUST work: Code (Text): command /twoinone: trigger: execute console command "/manudelv %player% {@suffixorprefix}" message "{@removemsg}" if player has permission "{@remove}": format slot 40 of player with {@removetitle} named "{@removename}" with lore "{@removetitlelore}" to run [make player execute command "/rwoinone"] Obviously you need Skript and SkQuery
You should just use set slot & inventory clicks or TuSke GUI to make guis... set format slot is a no no...