Hello there. I've got an issue with my Skript. I have this central GUI command, from which people can click to run other commands. However, as soon as someone has to click a second time, the GUI doesn't work: when the item is unstealable, you can still steal it, or when the item is supposed to run a command, you can just take the item, but the command doesn't run. For most commands, however, it works when I directly type the commands and then click further (again, only the first time). I don't get any error messages.
Here's an example of a "second layer" that is supposed to work but doesn't:
Here's an example of a "second layer" that is supposed to work but doesn't:
Code:
command /tpgui:
permission: gui.tp
trigger:
wait 2 ticks
open chest with 3 rows named "&cTeleport GUI" to player
set {_s} to 0
loop all players in player's world:
loop-player isn't player:
format slot {_s} of player with skull of loop-player named "&6%loop-player%" with lore "&cClick to teleport!" to close then run [execute console command "/tp %player% %loop-player%"]
add 1 to {_s}