LeavingPocketDimension
Gets called when the player is leaving the pocket dimension.
Start a script section
!-- OnEvent LeavingPocketDimension
-- require @evPlayer *evTeleport $evIsSuccessful $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerLeavingPocketDimensionEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is trying to leave from pocket dimension. |
*evTeleport | reference to PocketTeleport object | Gets the teleport the player collided with. Remarks: Can be null if exit was forced by a plugin. |
$evIsSuccessful | bool value | Gets or sets whether it is going to be success. |
$evIsAllowed | bool value | Whether the event is allowed to run. |