Class: PlayerLeaveAfterEventSignal
Manages callbacks that are connected to a player leaving the world.
Extends
Constructors
new PlayerLeaveAfterEventSignal()
private
new PlayerLeaveAfterEventSignal():PlayerLeaveAfterEventSignal
Returns
Overrides
IPlayerLeaveAfterEventSignal
. constructor
Methods
subscribe()
subscribe(
callback
): (arg
) =>void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
Function
Parameters
Parameter | Type |
---|---|
arg | PlayerLeaveAfterEvent |
Returns
void
Inherited from
IPlayerLeaveAfterEventSignal
. subscribe
Remarks
Subscribes to the event.
This function can't be called in read-only mode.
unsubscribe()
unsubscribe(
callback
):void
Parameters
Parameter | Type |
---|---|
callback | (arg ) => void |
Returns
void
Inherited from
IPlayerLeaveAfterEventSignal
. unsubscribe
Remarks
Unsubscribes from the event.
This function can't be called in read-only mode.