Skip to main content
← All Guides
Plugin Config · 6 min read

WorldGuard Flag Reference, Every Flag Explained

A complete worldguard flags reference covering every region flag, default values, group targets, and practical YAML examples for Minecraft servers.

How WorldGuard Flags Work

Flags are the rules that govern what can happen inside a WorldGuard region. Each flag has a name, a value (usually allow or deny), and an optional group target (members, nonmembers, or all). Understanding this worldguard flags reference is the foundation of region-based protection on any Minecraft server.

Protection Flags

These flags control core block and entity protection.

FlagDefaultDescription
builddeny (nonmembers)Controls placing and breaking blocks. The master flag, overrides most other build-related flags if set.
block-breakinherit from buildControls only block breaking.
block-placeinherit from buildControls only block placing.
interactallowControls right-click interactions: doors, buttons, levers, chests.
useallowControls item usage like flint and steel, bone meal, buckets.
chest-accessallowControls opening chests, barrels, shulker boxes.

Environment Flags

FlagDefaultDescription
pvpallowToggles player vs player combat.
mob-spawningallowControls natural mob spawning.
creeper-explosionallowWhether creepers can damage blocks.
tntallowWhether TNT can explode and damage blocks.
fire-spreadallowControls fire spreading to adjacent blocks.
lava-fireallowWhether lava can ignite blocks.
snow-fallallowControls snow layer accumulation.
ice-meltallowWhether ice can melt naturally.
leaf-decayallowControls natural leaf decay.

Player Flags

FlagDefaultDescription
entryallowWhether players can enter the region. Set to deny to create restricted areas.
exitallowWhether players can leave the region.
invincibilitydenyMakes players invulnerable inside the region.
fall-damageallowControls fall damage specifically.
exp-dropsallowWhether XP orbs drop from mobs and blocks.
enderpearlallowWhether enderpearl teleportation works.
chorus-fruit-teleportallowWhether chorus fruit teleportation works.

Message and Command Flags

# Greeting message when entering a region
/rg flag spawn greeting Welcome to Spawn!

# Farewell message when leaving
/rg flag spawn farewell You left the safe zone.

# Deny specific commands inside a region
/rg flag arena blocked-cmds /home,/tpa,/spawn

# Allow specific commands (deny all others)
/rg flag arena allowed-cmds /msg,/r

The greeting and farewell flags accept colour codes and are shown in chat. Use greeting-title and farewell-title to display them as screen titles instead.

Applying Flags to Groups

Most flags accept a -g argument to target a specific group. The worldguard flags reference defines three groups: members (region owners and members), nonmembers (everyone else), and all.

# Deny chest access for nonmembers only
/rg flag shop chest-access -g nonmembers deny

# Allow PvP for members but deny for everyone else
/rg flag arena pvp -g nonmembers deny

Region Priority and Flag Inheritance

When regions overlap, the region with the higher priority value wins. Child regions inherit flags from their parent unless explicitly overridden. Use /rg setpriority <region> <number> to control flag resolution in complex setups. For region creation basics, see our guide.

YAML Config Example

Flags are stored in plugins/WorldGuard/worlds/world/regions.yml. Here is what a protected spawn region looks like in the config:

regions:
  spawn:
    min: {x: -100, y: -64, z: -100}
    max: {x: 100, y: 320, z: 100}
    priority: 10
    flags:
      pvp: deny
      creeper-explosion: deny
      tnt: deny
      mob-spawning: deny
      greeting: "&aWelcome to Spawn!"
      invincibility: allow
    owners:
      players: []
    members:
      players: []

This worldguard flags reference covers the most commonly used flags. WorldGuard supports additional flags through third-party addons like WorldGuard Extra Flags, which adds potion effects, fly mode, and more. Refer to the How to Create Custom WorldGuard Regions with Schematics guide for advanced region techniques.

See these configs in action: Astroworld MC, IP play.astroworldmc.com, Java + Bedrock.

Related Tools & Resources

🔧

Minecraft Tools

Calculators, generators & server tools

🧱

Item Database

Browse all Minecraft items, stats & recipes

⚒️

Crafting Recipes

Visual crafting guides for every recipe