Hello guys, I am trying to fix this bug with GUI ,that then you click item it runs /join %loop-value% command
My code:
Skript 2.2
Mc 1.8
Thanks
My code:
code_language.skript:
open chest with 1 rows named "&0&l➥ žemėlapio pasirinikimas" to player
set {_s} to 0
loop {arenos.lb::*}:
if {lb.arena.online.%loop-value%} is set:
set {_ar} to loop-value
if {lb.arena.pl.%loop-value%} is not set:
set {lb.arena.pl.%loop-value%} to 0
format slot {_s} of player with paper named "&8» &e&o%loop-value%" with lore "&eLaukiama: %{lb.arena.pl.%loop-value%}%/2" to close then run [make player execute command "/lbpvp join %{_ar}%"]
else:
format slot {_s} of player with paper named "&8» &e&o%loop-value%" with lore "&eUžimta." to close
add 1 to {_s}
Skript 2.2
Mc 1.8
Thanks