region_definition) is a Manifest entry that defines the template for a protection zone. It specifies the priority, base permissions (flags), and initial management (owners/members) for any region associated with it.
Configuration
| Parameter | Type | Description |
|---|---|---|
priority | Int | Higher numbers override lower ones in overlapping areas. |
artifact | Ref<RegionArtifact> | Link to the artifact storing the physical boundaries. |
owners | List<String> | UUIDs or names of players with management rights. |
members | List<String> | UUIDs or names of players with interaction rights. |
groups | List<Ref<Group>> | Link to TypeWriter groups for batch permission management. |
parentRegion | Ref<RegionDefinition> | Optional parent for permission inheritance. |
flags | List<FlagBinding> | List of protection rules applied to this region. |
Flag Bindings
Each flag in theflags list consists of a Key (the rule name) and a Value (the rule setting).
Common Flags
- build: Controls block placement and breaking.
- pvp: Toggles combat between players.
- mob-spawning: Prevents or allows natural mob spawns.
- tnt: Toggles TNT explosions.
- use: Controls interaction with buttons, doors, and machinery.
Inheritance Logic
Regions follow a hierarchical evaluation:- Local Flags: Flags defined directly on the region.
- Inherited Flags: Flags inherited from a
parentRegion. - Global Flags: Flags defined in the
GlobalRegionArtifact.
[!TIP]
Use the /protection flags <id> command in-game to see exactly which flags are effective and why they might be blocked by inheritance.