Chest menu not working.

  • 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 community!

    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.

Triturpvp

Member
Feb 3, 2017
3
0
0
Hi, I recently started doing some Skripting but I've came to a little problem. I'm currently busy creating a settings menu for my server but the commands don't run. Can someone help me out? Here's my code:

<code>
command /settings:
trigger:
open chest with 4 rows named "&8%player%'s settings" to player
wait 1 tick
if {radio.%player%} is true:
format slot 13 of player with 1 of note block named "&bRadio: &aenabled" with lore "&7Click to disable!" to run "disableradio %player%"
else if {radio.%player%} is false:
format slot 13 of player with 1 of jukebox named "&bRadio: &cdisabled" with lore "&7Click to enable!" to run "enableradio"
else if {radio.%player%} is not set:
format slot 13 of player with 1 of note block named "&bRadio: &aenabled" with lore "&7Click to disable!" to run "disableradio"
wait 0.1 seconds
format slot 31 of player with 1 of arrow named "&eClose" to close

command /enableradio:
trigger:
set {radio.%player%} to true
execute player command "radio on"


command /disableradio:
trigger:
set {radio.%player%} to false
execute player command "radio off"
</code>

Thanks,
 
Use set slot, not format slot. Format slot is glitchy and annoying...
 
after "to run" you have to [make console excute command "insert command input here"] else it wont work.
 
Status
Not open for further replies.