How to Set Up WorldGuard on a Minecraft Server

Learn how to set up WorldGuard on your Minecraft server to protect regions, control PvP, prevent griefing, and manage custom flags.

Learn how to set up WorldGuard on your Minecraft server to protect regions, control PvP, prevent griefing, and manage custom flags.

Whether you want to protect spawn areas, secure player bases, or disable creepers blowing up specific zones, WorldGuard is the ultimate plugin for region protection and server environment control. This guide will show you how to install WorldGuard and set up your first protected region on your MCServerHost server.

Install Dependencies

WorldGuard requires another core plugin called WorldEdit to function properly because it relies on selecting regions using in-game tools (like the wooden axe).

  1. Ensure your server is running a plugin-compatible software like Paper, Spigot, or Purpur.
  2. Download the latest compatible versions of both WorldEdit and WorldGuard from Modrinth or SpigotMC.
  3. Log into your MCServerHost dashboard, open the File Manager, and navigate to the plugins folder.
  4. Upload both the WorldEdit and WorldGuard .jar files into the plugins folder.
  5. On the top left click "Restart" or "Start" server to load the plugins. Restart

Select a Region With WorldEdit

Before you can protect an area with WorldGuard, you need to define its boundaries using WorldEdit.

  1. Join your server with operator (OP) permissions.
  2. Type //wand to get the selection tool (a wooden axe)
  3. Left-click the first corner (block) of the area you want to protect.
  4. Right-click the opposite diagonal corner (making sure to select from top to bottom, or covering the full height of the build).

Define and Claim the Region

Once your region is selected, you can save and name it using WorldGuard.

  1. Run the following command to create the region (replace spawn with whatever name you want to give your region):
/region define spawn
  1. If successful, WorldGuard will save the selected cuboid as a protected region under that name.

Configure Region Flags

Flags allow you-to control what players can and cannot do inside your protected region.

Here are some popular ones:

Action / Flag Command Description
Disable Block Breaking /region flag spawn block-break deny Prevents players from breaking blocks inside the region.
Disable PvP /region flag spawn pvp deny Disables player-versus-player combat.
Disable Mob Spawning /region flag spawn mob-spawning deny Stops hostile monsters from spawning in the area.
Disable Creeper Explosions /region flag spawn creeper-explosion deny Prevents creepers from damaging blocks.
Disable TNT Explosions /region flag spawn tnt deny Prevents TNT explosions from damaging blocks.

Assign Owners or Members

If you want other players to be able to build or manage the region, you can add them as members or owners:

/region addmember spawn PlayerName
/region addowner spawn PlayerName

You've reached the end of this tutorial! By now, your custom region protection is fully set up and active. Grab your friends and enjoy your newly secured server! (:

Similarly, if you are having any type of issue or problem with your server at MCServerHost you can always get in touch with us by joining our Discord server or writing us at support@MCServerHost.com.

Related guides

All community guides