Is Persistent (Condition) — Skript

Addon: Skript · Category: Condition · Since: 2.11

Syntax

%entities/blocks% (is|are) persistent

Description

Whether entities, players, or leaves are persistent. Persistence of entities is whether they are retained through server restarts. Persistence of leaves is whether they should decay when not connected to a log block within 6 meters. Persistence of players is if the player's playerdata should be saved when they leave the server. Players' persistence is reset back to 'true' when they join the server. Passengers inherit the persistence of their vehicle, meaning a persistent zombie put on a non-persistent chicken will become non-persistent. This does not apply to players. By default, all entities are persistent.

Examples

on spawn:
	if event-entity is persistent:
		make event-entity not persistent

View source