Guide · Plugins

WorldGuard tutorial: protect your spawn

WorldGuard protects areas of the world with rules called flags: no building at spawn, no PvP in the market, no mob spawning in the hub. It is the standard tool for staff-defined protection on Paper servers.

Install it

WorldGuard requires WorldEdit or FastAsyncWorldEdit. Download both for your server version, put them in plugins, and restart.

Define a region

Get the selection wand with //wand, left-click one corner and right-click the opposite corner. Run //expand vert to cover the full height. Then create the region:

  • /rg define spawn: create a region named spawn from the selection
  • /rg info spawn: see its owners, members and flags
  • /rg addmember spawn <player>: let a builder work inside

The flags that matter

A new region already blocks building for non-members. Add flags for everything else with /rg flag <region> <flag> <allow|deny>:

  • pvp deny: no fighting
  • mob-spawning deny: no hostile mobs
  • creeper-explosion deny and tnt deny: no explosion damage
  • use allow: let players press buttons and open doors
  • chest-access deny: lock containers
  • greeting and farewell: messages on entering and leaving

Priorities and overlapping regions

When regions overlap, the one with the higher priority wins. Make the spawn region priority 10 and a shop inside it priority 20 with its own flags: /rg setpriority shop 20. Child regions can also inherit from a parent with /rg setparent.

The global region

Each world has a __global__ region that covers everything outside other regions. Set flags there to change the default for the whole world, for example /rg flag __global__ pvp deny for a peaceful world. Be careful with the build flag on __global__, which can stop everyone building everywhere.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why can I, as an operator, still build in the region?
Operators and players with the worldguard.region.bypass permission bypass protection. Toggle your own bypass with /rg bypass to test the region as a normal player would.
Does WorldGuard work with land claim plugins?
Yes. Use WorldGuard for staff-made regions such as spawn and a claim plugin for players. Most claim plugins refuse to create claims inside WorldGuard regions.
Do I need FastAsyncWorldEdit?
No. Regular WorldEdit is enough for WorldGuard. FastAsyncWorldEdit is worth it if you make very large edits.