#How can i get list of online players on server?

4 messages · Page 1 of 1 (latest)

humble heath
#

I want to create a script that will teleport players to random coordinates within a radius. How to get a list of players, or how to teleport each player through loops?
I'm new to KubeJS so please don't throw sticks at me

gentle merlinBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

versed ibex
#

doing js e.server.players.forEach(player => { //...Your Code })Should be what you want to do

#

with e being your event