#Player Count

1 messages · Page 1 of 1 (latest)

gray vine
#

Hello,
how do I get how many players are on the server in a variable (eg. "player_count")

Thanks. 🙂

cobalt void
#

Crossposting is not allowed!

gray vine
#

Please leave your frustration not in this thread. Thank you. I need help with getting the player count

gray vine
gray vine
#

Doesnt work.

cobalt void
#

Do you mind showing your code

gray vine
#

of course

#

the dimension runcommand is wrong. but the function at is own is not working

#

i want it to update every tick

#

but if i use world.XXX in a world event system says it isnt a function

cobalt void
#

TickEvent has been removed

#

Use this instead

system.runInterval(
    () => {
        //code
    },
);
gray vine
#

System is not defined

#

@cobalt void

cobalt void
sharp egret
#

What should I add these js to?

gray vine
gray vine
cobalt void
marsh void
#

Jeder fängt klein an

modern otter
# gray vine

Consider using Scoreboard.setScore instead of using runCommandAsync, despite that Scoreboard is not very convenient to use, it's much faster and better anyway