fetchPlayer
Retrieves a player from Sentinel’s database.
Signatures
beacon.fetchPlayer(playerId);
Parameters
playerId
The Sentinel UUID of the desired player.
Return Values
Type | Notes |
---|---|
Object | If the player was found, returns an object conforming to the Player class. Returns null if not found, which is rare, but possible. |
Examples
Fetch the player that just joined the server
const player = beacon.fetchPlayer(beacon.eventData.playerId);