How to Install and Configure WorldGuard on Your Minecraft Server

Install WorldGuard on your Minecraft Java server for region protection, anti-grief, PvP zones, mob-spawning control, and per-area gameplay flags.

WorldGuard is the standard region-protection plugin for Minecraft. It lets you mark areas as protected, set per-region flags (no PvP, no mob spawning, custom greetings), control who can build where, and enforce server-wide rules. It pairs with WorldEdit — you use WorldEdit to select areas, then WorldGuard to protect them.

If you've ever lost a build to griefing, you needed WorldGuard yesterday.

Install WorldGuard

Install WorldEdit first (required)

WorldGuard depends on WorldEdit for region selection. Install WorldEdit before WorldGuard, or both at the same time.

Download WorldGuard

Go to enginehub.org/worldguard/ and pick the build for your platform:

PlatformBuild
Bukkit / Spigot / Paperworldguard-bukkit-X.X.X.jarplugins/
SpongeSponge build → mods/

Note: WorldGuard is Bukkit-family only. There's no Forge or Fabric build. For Forge, use GriefDefender instead.

Stop the server

In the XGamingServer Panel, open Console and stop your server.

Upload to plugins/

Click Files in the sidebar. Upload worldguard-bukkit-X.X.X.jar to plugins/ (alongside WorldEdit).

Start the server

Start from Console. WorldGuard creates plugins/WorldGuard/ and a global region for each world.

Verify

plugins

WorldGuard and WorldEdit should both appear in green.

Create Your First Protected Region

Select the area with WorldEdit

//wand

Left-click and right-click two corners to select the area you want to protect.

Define a region

/rg define spawnarea

This creates a region named spawnarea from your current selection. Region names are case-insensitive.

Set basic protection flags

/rg flag spawnarea build deny
/rg flag spawnarea pvp deny
/rg flag spawnarea creeper-explosion deny
/rg flag spawnarea tnt deny

Add yourself as owner

/rg addowner spawnarea YourName

Owners can build inside the region even when build deny is set.

Test it

Have a non-OP player try to break a block in the region. They should see "Hey! You can't do that here."

Region Flags Reference

Build / Damage Flags

FlagValuesDescription
buildallow / denyBlock placing and breaking (most common protection)
interactallow / denyAll entity interaction
block-breakallow / denyJust breaking blocks
block-placeallow / denyJust placing blocks
useallow / denyDoors, buttons, levers, plates
chest-accessallow / denyContainer access
item-frame-rotationallow / denyRotate item frames
tntallow / denyTNT block damage
creeper-explosionallow / denyCreeper grief damage
enderdragon-block-damageallow / denyDragon block break
wither-block-damageallow / denyWither block break
ghast-fireballallow / denyGhast block damage
fire-spreadallow / denyFire spreading
lava-fireallow / denyLava igniting blocks
lava-flow / water-flowallow / denyLiquid flow

PvP / Mobs

FlagValuesDescription
pvpallow / denyPlayer vs player damage
mob-spawningallow / denyAll natural mob spawning
mob-damageallow / denyMobs damaging players
entity-painting-destroyallow / denyBreak paintings
entity-item-frame-destroyallow / denyBreak item frames
damage-animalsallow / denyHurt animals

Player Movement

FlagValuesDescription
entryallow / denyPlayers entering the region
exitallow / denyPlayers leaving the region
entry-deny-messagetextMessage when entry blocked
enderpearlallow / denyEnderpearl teleport
chorus-fruit-teleportallow / denyChorus fruit

Messages

FlagTypeDescription
greetingtextShown when entering the region
farewelltextShown when leaving
notify-entertextNotify staff on entry

Example:

/rg flag spawn greeting &aWelcome to spawn!
/rg flag spawn farewell &eSafe travels.

Common Region Setups

Spawn Region

/rg flag spawn build deny
/rg flag spawn pvp deny
/rg flag spawn mob-spawning deny
/rg flag spawn creeper-explosion deny
/rg flag spawn tnt deny
/rg flag spawn fire-spread deny
/rg flag spawn lava-flow deny
/rg flag spawn greeting &aWelcome to spawn!

PvP Arena

/rg flag arena pvp allow
/rg flag arena build deny
/rg flag arena mob-spawning deny
/rg flag arena enderpearl deny
/rg flag arena exit-via-teleport allow

Player Plot (in survival)

/rg flag plot1 build allow
/rg addmember plot1 friend1 friend2

The plot owner uses /rg addmember plot1 <player> to grant build access.

Global Region (server-wide defaults)

The __global__ region applies to the entire world unless another region overrides it. Useful for server-wide rules:

/rg flag __global__ pvp deny
/rg flag __global__ creeper-explosion deny

Region Hierarchy and Priority

Regions can overlap. To control which region wins, set priorities:

/rg setpriority spawn 10
/rg setpriority arena 20

Higher priority wins. The arena (priority 20) overrides spawn rules (priority 10) in any overlapping area.

You can also nest regions with parent inheritance:

/rg setparent plot1 mainland

Now plot1 inherits all flags from mainland unless overridden.

Manage Region Members

CommandDescription
/rg addmember <region> <player>Add a member (can build)
/rg removemember <region> <player>Remove a member
/rg addowner <region> <player>Add an owner (can build + manage)
/rg removeowner <region> <player>Remove an owner
/rg info <region>View members, owners, flags
/rg listList all regions
/rg list <player>List regions a player owns
/rg redefine <region>Update region bounds from current selection
/rg remove <region>Delete a region

Common Issues

ProblemFix
Hey, you can't do that here for OPsDisable region.bypass permission, or set bypass flag
Region doesn't protectCheck flags with /rg info <region>build deny must be set
Players can build in protected regionThey're owner/member, or have worldguard.region.bypass.<world> perm
Overlapping regions don't workSet priorities with /rg setpriority
Mob-spawning doesn't stop spawnersSpawners bypass natural spawning rules — break the spawner
//wand doesn't workWorldEdit isn't installed
Region disappeared after restartRegion wasn't saved — file write error, check disk space
Greeting message shows section sign instead of colorUse & for colors, not §

Permissions Reference

PermissionEffect
worldguard.region.defineCan create regions
worldguard.region.redefine.ownCan redefine own regions
worldguard.region.flag.ownCan flag own regions
worldguard.region.addmember.ownCan add members to own regions
worldguard.region.bypass.<world>Bypass all WG protections in a world

Common Mistakes

MistakeFix
Forgetting build deny (just adding owner)Add build deny — owner status only matters if build is denied
Not restarting after installRestart so the global region is created
Editing flags via files instead of commandsAlways use commands — files have strict format
Setting mob-spawning deny and expecting spawners to stopSpawners bypass — break them
Giving everyone region.bypass to "fix" issuesDefeats the purpose — fix the actual region setup
Using WorldGuard on ForgeIt's Bukkit-family only — use GriefDefender for Forge

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page