Skip to main content

LeftPocketDimension

Gets called when the player has left the pocket dimension.

Start a script section

!-- OnEvent LeftPocketDimension
-- require @evPlayer *evTeleport $evIsSuccessful

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerLeftPocketDimensionEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who tried to left 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 whether the escape was successful.