NEW 📢 Limited launch offer: up to 70% off your first month on every game!See plans

How to protect your spawn with WorldGuard on your Minecraft server

MinecraftUpdated Oct 28, 20264 min read

WorldGuard protects areas of your world. Install WorldEdit and WorldGuard from Modding, Plugins, restart, select your spawn with the WorldEdit wand, then type /rg define spawn. Only the region's members and owners can build there; you can then switch PvP, mobs and more on or off with flags.

The commands below are from WorldGuard's official documentation.

Install WorldGuard

  1. Open your server in the panel, click the Modding tab, then Plugins.
  2. Install WorldEdit first, yourself. WorldGuard's guide says: Make sure you get WorldEdit as well! WorldGuard's Modrinth page does not list WorldEdit as a requirement, so the panel may not add it for you.
  3. Install WorldGuard.
  4. Restart the server.

WorldGuard is published for Paper, Spigot and Folia, so it also runs on Purpur. WorldGuard's documentation lists the permission each command needs. For the wand and selections, see How to use WorldEdit on your Minecraft server.

Protect your spawn

  1. In the game, type //wand and select the spawn area: left-click one corner, right-click the opposite corner. The region is the box between the two corners, so put one corner low and the other high enough to cover what you want.
  2. Type /rg define spawn. This creates a region named spawn over the selection.
  3. By default, only members and owners of a region can build in it, so nobody else can break or place blocks there.

Let people build in a region

  • /rg addmember spawn Steve lets Steve build in spawn.
  • /rg addowner spawn Steve makes Steve an owner.
  • g: names a permission group, for example /rg addmember spawn g:builders.

Change what is allowed with flags

A flag is set with /rg flag <region> <flag> <value>. For example:

  • /rg flag spawn pvp deny: no fighting between players.
  • /rg flag spawn mob-spawning deny: no mobs spawn.
  • /rg flag spawn creeper-explosion deny and /rg flag spawn tnt deny: no explosion damage.
  • /rg flag spawn greeting Welcome to spawn!: a message when players enter.
  • /rg flag spawn pvp with no value removes the flag again.

To set a flag on the whole world, use the special region __global__, for example /rg flag __global__ pvp deny.

Good to know

Already hosting it somewhere else? Move your server to us

OUR LATEST BLOGS