skript help

command /list:
 trigger:
  loop all players:
   if region at loop-player is "a1" or "a2" or "a3" or "a4":
    add loop-player to {list::*}
    set {_list2} to a random element out of {list::*} 
    send "%{_list2}%"
    delete {list::*}
    delete {_list2}

Its supposed to give only name of one player as the random element but instead gives me the name of all the players in the defined region
Was this page helpful?