Hey, I'm trying to make a war script. and so I have some problems. so if I do /war then if I have the permissions of war.astina and if someone else has the permissions "test1", and then if someone clicks on the skull then I get not only message "test1" but also message as "test2" does anyone know why
Code:
create a gui slot 13 of player with Skull of "xNessuno" parsed as offlineplayer named "&5Myria" with lore "&cKlik om een oorlog te starten tegen Myria" to run:
if {test1} is true:
loop all players:
if loop-player have permission "oorlog.astina":
send "test2" to loop-player
if loop-player have permission "test1":
set {test1} to true
send "this works" to loop-player
if loop-player has permission "test2":
set {test2} to true
send "this works" to loop-player
if loop-player has not permission "test2":
send "no perms :/" to loop-player
if {test2} is true:
loop all players:
if loop-player have permission "oorlog.astina":
send "test2" to loop-player
if loop-player have permission "test1":
set {test1} to true
send "this works" to loop-player
if loop-player has permission "test2":
set {test2} to true
send "this works" to loop-player
if loop-player has not permission "test2":
send "no perms :/" to loop-player