I am working on a kit pvp skript, and I need help looping a specific value,
The loop thing does not send anything...
Any suggestions? The skript stops at the loop {arenas::*} line.
code_language.skript:
on right click on sign:
set {_sign} to clicked block
if line 1 and line 4 of {_sign} is "§8–––––––––––––––––––––":
if line 2 of {_sign} is "§c§lKit§8§lPvP":
if line 3 of {_sign} is "§f§lJOIN":
loop {arenas::*}:
message "%{arenas::%loop-value%::name}%" to player
set {_joinSign} to {arenas::%loop-index%::joinsign}
if {_sign} is {_joinSign}:
teleport player to {arenas::%loop-index%::lobbyLoc}
sendToHub(player)
message "{@prefix} You have joined the Arena!" to player
The loop thing does not send anything...
Any suggestions? The skript stops at the loop {arenas::*} line.