Skip to content

WorldGuard🔗

Minimal required version: 7.0.0

Objectives🔗

Region🔗

Context:
Syntax: region <region> [entry|exit]
Description: The player has to interact with the specified region.

Parameter Syntax Default Value Explanation
Region Region name The region where the player has to be
Entry entry Disabled The player needs to enter the region
Exit exit Disabled The player needs to leave the region
Examples
objectives:
  deathZone: "region deathZone entry actions:kill"

Conditions🔗

NpcRegion🔗

Context:
Syntax: npcregion <npc> <region>
Description: This condition is met if the specified npc is inside the specified region.

Parameter Syntax Default Value Explanation
Npc Npc The ID of the NPC
Region Region Name The region where the NPC needs to be
Examples
conditions:
  mayorAtSpawn: "npcregion mayor spawn"

Region🔗

Context:
Syntax: region <region>
Description: This condition is met if the player is inside the specified region.

Parameter Syntax Default Value Explanation
Region Region name The region where the player has to be
Examples
conditions:
  inCastle: "region castle"