Skip to content

Latest commit

 

History

History
133 lines (59 loc) · 2 KB

File metadata and controls

133 lines (59 loc) · 2 KB

Home > server > PlayerEventPayloads

PlayerEventPayloads interface

Event payloads for Player emitted events.

Signature:

export interface PlayerEventPayloads 

Properties

Property

Modifiers

Type

Description

"PLAYER.CHAT_MESSAGE_SEND"

{ player: Player; message: string; }

Emitted when a player sends a chat message.

"PLAYER.JOINED_WORLD"

{ player: Player; world: World; }

Emitted when a player joins a world.

"PLAYER.LEFT_WORLD"

{ player: Player; world: World; }

Emitted when a player leaves a world.

"PLAYER.RECONNECTED_WORLD"

{ player: Player; world: World; }

Emitted when a player reconnects to a world after a disconnect.

"PLAYER.REQUEST_SYNC"

{ player: Player; receivedAt: number; receivedAtMs: number; }

Emitted when a player's client requests a round trip time synchronization.