fetchOnlinePlayers

Retrieves all players currently playing on the server.

Signatures

beacon.fetchOnlinePlayers();

Return Values

Type Notes
Array An array of Player objects. It is possible for the array to be empty.

Examples

Fetch all active players on the server

const players = beacon.fetchOnlinePlayers();

See Also