Skip to main content
Version: v2.10.1

Interface: ConnectionChangeEvent

Represents the event emitted when a player's connection status changes.

Property Type Description Optional
typestring = "connection"Constant string indicating the event type.
actionstring = "connect" | "disconnect"Indicates if the player connected or disconnected.
previousConnectionboolean | nullThe previous connection state before the event.
currentConnectionboolean | nullThe current connection state after the event.