Region Parent (Expression) — skript-worldguard

Addon: skript-worldguard · Category: Expression · Since: 1.0

Syntax

[the] parent region[s] of %worldguardregions%

Description

An expression to obtain and change the direct parent of a region. It is also possible to obtain all parents of a region (e.g., including a parent region's parent region). When a region has a parent, it inherits the parents members, owners, and flags (that aren't defined on the child).

Examples

command /setparent <text> <text>:
	trigger:
		set the parent of the region text-argument-1 to the region text-argument-2
if any of all of the parent regions of {_region} are global

View source