Persistent (Effect) — Skript

Addon: Skript · Category: Effect · Since: 2.11

Syntax

make %entities/blocks% [not] persist[ent]

Description

Make entities, players, or leaves be 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

prevent all entities from persisting
force {_leaves} to persist
command /kickcheater <cheater: player>:
	permission: op
	trigger:
		prevent {_cheater} from persisting
		kick {_cheater}

View source