#how can i make an online player counter?

1 messages · Page 1 of 1 (latest)

verbal dune
#

`
#Make a scoreboard:
/scoreboard objectives add Count dummy

#Add 1 to a FakePlayer for every player:
#RUAA0:
execute as @a run scoreboard players add Players Count 1

#Run command based off player count:
#CUAA0:
execute if score Players Count matches <int> run <command>

#Reset count:
#CUAA0:
scoreboard players reset Players Count`

glad sage
civic solar
#

You need 2 command

#

1 Repeating, then attach a chain to that. Make sure they're both always active and unconditional.

Then add a scoreboard like this:
/scoreboard objectives add online dummy

Then summon an armor stand with the name of score of smthn

In the repeating:

Scoreboard players set @e[type=armor_stand,name=score] online 0

In the chain:

execute as @a at @s run scoreboard players add @e[type=armor_stand,name=score] online 1
verbal dune
#

Just removing the part where you actually do something with the amount

#

Also your third command has an unnecessary “at @s” in it

#

Also it doesn’t need an entity

#

A fake player will do just fine

civic solar
#

That's nice

#

Don't care

verbal dune
civic solar
#

Because I got a notification

#

Still don't care

verbal dune
#

And I responded to you because I got a noti

civic solar
#

That's nice

#

Good for you buddy

verbal dune
#

Sure man. Just completely skip over the fact that you repeated exactly what I said and thought you did something

#

Seriously people like you gotta learn how to read