[SOLVED]

Discussion in 'Skript' started by TomPlaysMcEsiorz, Apr 30, 2017.

Thread Status:
Not open for further replies.
  1. 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
     
  2. 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
     
  3. 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!"]]
     
    #3 PandaDevs, Apr 30, 2017
    Last edited: Apr 30, 2017
  4. didn't work.. :(
    any other ideas ?
     
  5. Idk what do u want to do m8 :l
     
  6. Can you show the code using the code function?
     
  7. i want it so someone clicks this stained glass pane in the gui, it runs 2 commands..
     
  8. 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.
     
  9. any help? thanks really need it!
     
  10. Considered making a command that runs them two commands and having them run that command in the GUI?
     
  11. and how will i do this?
     
  12. Make a command that just makes player execute others.
     
  13. i cant, since the commands i need, need to be run from console. :(
     
  14. Code (Text):
    command /2commands:
      trigger:
        execute console command "/example"
        execute console command "/example2"
     
  15. ill try this thhanks.
     
  16. update, this did not work. :(
     
  17. 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
     
  18. You should just use set slot & inventory clicks or TuSke GUI to make guis... set format slot is a no no...
     
    • Agree Agree x 1
  19. fixed it guys, thanks for help! :D
     
Thread Status:
Not open for further replies.