Trying to get a system so players can choose which team they want to be on. When they choose that team, I want it to add them to a list variable. But I cant find a value in the list variable! If I broadcast it, I get the contents of the variable accurately. It's a series of player names. But HOW DO I DETECT IF A SPECIFIC PLAYER NAME exists in the list variable?!
Code ive been using to test:
Code ive been using to test:
Code:
command /lol:
trigger:
loop {teamred::*}:
if {teamred::%player%} is event-player's name:
send "You are a member of Team RED!" to player
else:
set {_gui} to a new chest inventory with 1 row named "&cTeam &aSelector"
set slot 1 of {_gui} to red wool named "&cRED TEAM" with lore "Click this to choose team red!"
open {_gui} to player
send "You have not chosen a team yet!" to player