Region Priority (Expression) — skript-worldguard
Addon: skript-worldguard · Category: Expression · Since: 1.0
Syntax
[the] [region] priority of %worldguardregions%Description
An expression to obtain and change the priority of a region. When regions overlap, the priority is used to determine properties such as membership, ability to build, and flag values.
Examples
function get_highest_priority_region(location: location) returns worldguard region:
set {_regions::*} to the regions at {_location}
sort {_regions::*} in descending order by priority of input
return {_regions::1}