Last Caught Errors (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.12

Syntax

[the] last caught [run[ ]time] errors

Description

Gets the last caught runtime errors from a 'catch runtime errors' section.

Examples

catch runtime errors:
	set worldborder center of {_border} to location(0, 0, NaN value)
if last caught runtime errors contains "Your location can't have a NaN value as one of its components":
	set worldborder center of {_border} to location(0, 0, 0)

View source