GUI Command Event

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

jackass

Member
Nov 8, 2017
16
0
0
23
Hello! I am trying to make this GUI make a player execute a command on click, but it does not seem to work.

format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to make player execute command "/drops toggle"

This line works fine
format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to do nothing

Not sure what's up.
 
Hello! I am trying to make this GUI make a player execute a command on click, but it does not seem to work.

format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to make player execute command "/drops toggle"

This line works fine
format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to do nothing

Not sure what's up.
Two ways
#1:
code_language.skript:
format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to execute player command "/drops toggle"
#2:
code_language.skript:
format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to run:
    execute player command "/drops toggle"
 
Two ways
#1:
code_language.skript:
format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to execute player command "/drops toggle"
#2:
code_language.skript:
format gui slot 12 of player with glowing white_wool_block named "&b&nToggle 3D Drops" to run:
    execute player command "/drops toggle"
Ty
 
Status
Not open for further replies.