Is Valid Region ID (Condition) — skript-worldguard

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

Syntax

%strings% (is|are) [a] valid [worldguard] region id

Description

A condition to test whether a string is a valid region ID. Valid region IDs only contain letters, numbers, underscores, commas, single quotation marks, dashes, pluses, or forward slashes.

Examples

command /createregion <text>:
	if the text-argument is not a valid region id:
		message "<red>'%text-argument%' is not a valid region ID")
	# here is where the rest of the command would go :)

View source