Hello,
Let's say I have an example command that loops all players and sends them a message.
Now this will loop the first player first, then the second one, and so on until it goes through all the players. What can I do to make it happen simultaneously for all players? Now I know I could send these messages without any loop, but this is just an example and I need to loop all the players at once...
I thought about putting all players in a list variable, but I think I'm doing it wrong... Any help?
Let's say I have an example command that loops all players and sends them a message.
Code:
command /test:
trigger:
loop all players:
send "message 1" to loop-player
wait 1 second
send "message 2" to loop-player
Now this will loop the first player first, then the second one, and so on until it goes through all the players. What can I do to make it happen simultaneously for all players? Now I know I could send these messages without any loop, but this is just an example and I need to loop all the players at once...
I thought about putting all players in a list variable, but I think I'm doing it wrong... Any help?