How to Install and Configure WorldGuard on Your Minecraft Server

Learn how to install WorldGuard for region protection, grief prevention, and gameplay flags.

WorldGuard lets you protect areas of your world from griefing, set gameplay flags (disable PvP, mob spawning, etc.), and create custom-protected regions.

Installing WorldGuard

Install WorldEdit first

WorldGuard requires WorldEdit. Install it if you haven't already.

Upload to your server

Access the XGamingServer panel, go to Files, navigate to /plugins/, and upload the .jar.

Creating Protected Regions

Select an area

Use WorldEdit's wand (//wand) to select two corners of the area you want to protect.

Define a region

/rg define [regionname]

Set flags

/rg flag [regionname] build deny
/rg flag [regionname] pvp deny
/rg flag [regionname] mob-spawning deny

Common Flags

FlagValuesDescription
buildallow/denyBlock placing and breaking
pvpallow/denyPlayer vs player combat
mob-spawningallow/denyMob spawning in region
creeper-explosionallow/denyCreeper block damage
tntallow/denyTNT block damage
useallow/denyDoors, buttons, levers
chest-accessallow/denyContainer access
entryallow/denyPlayers entering the region
greeting[message]Message shown when entering
farewell[message]Message shown when leaving

Managing Region Access

CommandDescription
/rg addmember [region] [player]Allow a player to build
/rg addowner [region] [player]Give full region control
/rg removemember [region] [player]Remove build access
/rg info [region]View region details
/rg listList all regions
/rg remove [region]Delete a region

💡 Tip: Create a global __global__ region to set server-wide defaults, then override with specific regions.

See also: Setup WorldEdit | Installing Plugins

If you need help, join our Discord.

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