Class: PlayerLeaveBeforeEventSignal
Manages callbacks that are connected to a player leaving the world.
Constructors
new PlayerLeaveBeforeEventSignal()
private
new PlayerLeaveBeforeEventSignal():PlayerLeaveBeforeEventSignal
Returns
Methods
subscribe()
subscribe(
callback
): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | PlayerLeaveBeforeEvent |
Returns
void
Remarks
Adds a callback that will be called when a player leaves the world.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |