So i wanna make a practise plugin. I want to make so i can /<command> list and all arenas i create will be shown in a gui. It is hard and i dont get how i could do this. bcs if i do %arenalists::%arg-2% that doesn't know what arg 2 is in that sentence please help.
if arg-1 is "create":
set {arena.%arg-2%} to true
send "&c&lPractise &c>> &c%arg-2% &9has been created!"
set {arena.%arg-2%} to {arenalists::%arg-2%}
if arg-1 is "list":
open chest with 2 rows named "&8Arenas" to player
wait 2 ticks
format slot 0 of player with barrier named "&c%arenalists::%arg-2%" to close then run
if arg-1 is "create":
set {arena.%arg-2%} to true
send "&c&lPractise &c>> &c%arg-2% &9has been created!"
set {arena.%arg-2%} to {arenalists::%arg-2%}
if arg-1 is "list":
open chest with 2 rows named "&8Arenas" to player
wait 2 ticks
format slot 0 of player with barrier named "&c%arenalists::%arg-2%" to close then run