code_language.skript:
if size of {sw.arenas::*} is not 0:
send "&7Loading arenas..."
set {sw.arenas.menu} to 0
if size of {sw.arenas::*} <= 9:
open chest with 1 row named "SKYWARS ARENAS" to player
loop {sw.arenas::*}:
if {sw.arena.%loop-value%.status} is "{@ingame}":
format slot {sw.arenas.menu} of player with red clay named "&8 " with lore "&7Name&8: &e&l%loop-value%||&7Status&8: %{sw.arena.%loop-value%.status}%||&7Players&8: &7%{sw.arena.%loop-value%.playing}%/%{sw.arena.%loop-value%.max}%||||&a&oClick to join!" to close then run [make player execute command "sw join %loop-value%"]
add 1 to {sw.arenas.menu}
else:
format slot {sw.arenas.menu} of player with green clay named "&8 " with lore "&7Name&8: &e&l%loop-value%||&7Status&8: %{sw.arena.%loop-value%.status}%||&7Players&8: &7%{sw.arena.%loop-value%.playing}%/%{sw.arena.%loop-value%.max}%||||&a&oClick to join!" to close then run [make player execute command "sw join %loop-value%"]
add 1 to {sw.arenas.menu}
set {sw.arenas.menu} to 0
stop
every time i join to same/another arena
Last edited: