Hello dear community, I have a little problem where I can't help myself. I scripted a GUI in code as below and put a command in there back there .. but it doesn't execute it .. it only executes vanilla commands .. a restart didn't bring anything!
Code:
command /spawngui:
permission: spawn.gui
permission message: {@pm} /SpawnGUI
trigger:
if {loc.spawn} is not set:
if {spawn.sprache} is 0:
send "{@p} Der Spawn wurde noch nicht gesetzt!"
if {spawn.sprache} is 1:
send "{@p} The spawn has not yet been set!"
else:
open chest with 1 row named "&cSpawn" to player
wait 1 tick
format slot 0 of player with light gray glass named " " with lore "" to close then run "spawngui"
format slot 1 of player with light gray glass named " " with lore "" to close then run "spawngui"
format slot 2 of player with light gray glass named " " with lore "" to close then run "spawngui"
format slot 3 of player with light gray glass named " " with lore "" to close then run "spawngui"
format slot 4 of player with grass block named "&aSpawn" with lore "" to close then run "spawn"
format slot 5 of player with light gray glass named " " with lore "" to close then run "spawngui"
format slot 6 of player with light gray glass named " " with lore "" to close then run "spawngui"
format slot 7 of player with light gray glass named " " with lore "" to close then run "spawngui"
format slot 8 of player with light gray glass named " " with lore "" to close then run "spawngui"