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.
Download WorldGuard
Download from CurseForge or Modrinth.
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 denyCommon Flags
| Flag | Values | Description |
|---|---|---|
build | allow/deny | Block placing and breaking |
pvp | allow/deny | Player vs player combat |
mob-spawning | allow/deny | Mob spawning in region |
creeper-explosion | allow/deny | Creeper block damage |
tnt | allow/deny | TNT block damage |
use | allow/deny | Doors, buttons, levers |
chest-access | allow/deny | Container access |
entry | allow/deny | Players entering the region |
greeting | [message] | Message shown when entering |
farewell | [message] | Message shown when leaving |
Managing Region Access
| Command | Description |
|---|---|
/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 list | List 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