on rightclick on sign: if line 2 of clicked block is "{@tag}": if line 3 of clicked block is "" if arg 1 is "lista" or "list": if {arena.list-number} is not set: set {arena.list-number} to 0 if {arena.list-number} is 0: send "{@tag} {@error}Nie ma zadnych aren!" stop if {arena.list-number} is greater than 0: send "{@tag} {@c2}({@c1}%{arena.list.number}%{@c2}){@c1}: %{arena.list.list::*}%" stop if arg 1 is "tabliczki" or "signs": if {arena.signs-number} is not set: set {arena.signs-number} to 0 if {arena.signs-number} is 0: send "{@tag} {@error}Nie ma zadnych tabliczek!" stop if {arena.signs-number} is greater than 0: send "{@tag} {@c2}({@c1}%{arena.signs.number}%{@c2}){@c1}: %{arena.arena.tp.tabliczka::*}%" stop if arg 1 is "create" or "stworz": if player has permissions "arena.create" or "arena.admin": if arg 2 is set: if arg 3 is set: if {arena.%arg 2%.arena} is true: send "{@tag} {@error} Istnieje juz arena o takiej nazwie!" stop else: set {arena.arena.%arg 2%.arena} to true set {arena.arena.%arg 2%.nazwa} to "%arg 2%" set {arena.arena.%arg 2%.tabliczka} to "%arg 3%" set {arena.arena.%arg 2%.tp} to location of player send "%{tag}% Arena &8- &aTworzenie ..." make console execute command "pex user %name of player% add worldguard.*" make console execute command "pex user %name of player% add worldedit.*" wait 1 tick make player execute command "//pos1" make player execute command "//pos2" wait 1 tick make player execute command "//expand 100 n" make player execute command "//expand 100 s" make player execute command "//expand 100 w" make player execute command "//expand 100 e" make player execute command "//expand vert" wait 1 tick make player execute command "/rg define arena-%arg 2%" wait 1 tick make player execute command "//pos1" make player execute command "//pos2" wait 1 tick make player execute command "//expand 2 n" make player execute command "//expand 2 s" make player execute command "//expand 2 w" make player execute command "//expand 2 e" make player execute command "//expand 3 up" wait 1 tick make player execute command "/rg define arena-pvp-%arg 2%" wait 1 tick make player execute command "/rg flag arena-pvp-%arg 2% pvp deny" wait 1 tick make console execute command "pex user %name of player% remove worldguard.*" make console execute command "pex user %name of player% remove worldedit.*" add "%arg 2%" to {arena.list.list::*} add "%arg 3%" to {arena.arena.tp.tabliczka::*} add 1 to {arena.list-number} add 1 to {arena.list-number} add 1 to {arena.signs-number} add 1 to {arena.signs.number} send "{@tag} {@c1}Stworzono arene o nazwie {@c2}%arg 2%{@c1}!" set {arena.arena.%arg 2%.endset} to true stop else: send "{@tag} {@error}Podaj nazwe tabliczki teleportujacej!" stop else: send "{@tag} {@error}Podaj nazwe areny!" stop else: send "{@tag} {@permissions}" stop