Is Parent Region (Condition) — skript-worldguard

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

Syntax

%worldguardregions% (is|are) a parent region[s] of %worldguardregions%

Description

A condition to test whether a region is a parent region of another.

Examples

command /printchildren <text>:
	trigger:
		set {_parent} to the region text-argument
		message "Children of %{_parent}%:"
		loop all regions:
			if {_parent} is a parent region of loop-region:
				message "- %loop-region%"

View source