Skip to main content

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

VariableTypeDescription
@evPlayerplayer valueGets the player who is trying to leave from pocket dimension.
*evTeleportreference to PocketTeleport objectGets the teleport the player collided with.
Remarks: Can be null if exit was forced by a plugin.
$evIsSuccessfulbool valueGets or sets whether it is going to be success.
$evIsAllowedbool valueWhether the event is allowed to run.