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,
<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,