Page 1 of 1

zone users

Posted: 06 Jun 2021, 05:01
by Murball77
How do I get a list of all the online zone users, I can see in the avatar chat when users connect it says 1,2,3 etc of 150 but can't figure out how it's getting that count.

Thx

Re: zone users

Posted: 07 Jun 2021, 07:47
by Lapo
Hi,
from client side it is not possible, at least not from the default API.
The main reason is that a Zone may contain tens of thousands of Users and sending the full list would be too much data.

On the server side you can access the list of users via the Zone object.
For example:

Code: Select all

Collection<User> userList = getParentZone().getUserList()
Cheers