Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

Install WorldGuard and WorldEdit

WorldGuard is a plugin from EngineHub, the team that also develops WorldEdit. It has two requirements:

  • A server compatible with the Bukkit API: Paper or Spigot, and therefore also Purpur, which is built on Paper. The vanilla server does not load plugins, and the official documentation states that Forge and Sponge are not supported; there is no Fabric version either.
  • WorldEdit, in its Bukkit version: WorldGuard uses it to select areas. Get the WorldEdit build for Paper or Spigot, not the one for another loader.

Download both .jar files in the version that matches your Minecraft, drop them into the server's plugins folder, then restart fully. Then check the log: an error when WorldGuard loads often comes from a missing WorldEdit or a version that does not match.

To choose the server software, see Paper, Purpur or Spigot; WorldGuard is also part of our selection of essential Minecraft plugins. WorldEdit's selection commands are detailed in WorldEdit: the essential commands.

02

Select an area and create a region

Select the area. Type //wand to get WorldEdit's wand, a wooden axe. Left-clicking a block sets the first corner, right-clicking sets the opposite corner. You can also stand at each corner and type //pos1 then //pos2. To protect the full height, from the bottom of the world to the sky, expand the selection:

//expand vert

Create the region. Give it a name that is unique in the world (case does not matter):

/rg define spawn

The region is protected straight away: only its members and owners can build in it. /rg is the shortcut for /region.

Add members and owners:

/rg addmember spawn Pseudo1 Pseudo2
/rg addowner spawn Pseudo3
/rg addmember spawn g:constructeurs
/rg removemember spawn Pseudo1

The g: prefix refers to a permission group, for example a group created with LuckPerms (see LuckPerms: ranks and permissions). Members and owners can all build; the difference lies in the commands you allow them. With the .own permissions, a player only manages the regions they own. For example, so that everyone can add friends to their own region:

/lp group default permission set worldguard.region.addmember.own.* true

Other useful commands: /rg info spawn shows the region, /rg list lists them, /rg redefine spawn replaces its area with your current selection and /rg remove spawn deletes it.

03

Flags

Flags change the rules inside a region. They are set with /rg flag, and a command without a value removes the flag:

/rg flag spawn pvp deny
/rg flag spawn mob-spawning deny
/rg flag spawn creeper-explosion deny
/rg flag spawn greeting Bienvenue au spawn
/rg flag spawn pvp

A few common flags:

  • pvp: combat between players;
  • mob-spawning: monsters and animals spawning;
  • creeper-explosion, tnt, fire-spread: damage from explosions and fire (fire-spread requires an option to be enabled in the configuration);
  • use: doors, levers, buttons and pressure plates. /rg flag spawn use allow lets visitors use them;
  • entry: entering the region. Set to deny, it blocks non-members by default;
  • greeting and farewell: a message on entry and exit.

The -g option limits a flag to a group of the region (members, owners, nonmembers, nonowners or all):

/rg flag ville pvp -g nonmembers deny

/rg flags spawn shows the list of the region's flags with their values: it is clickable in game.

What not to do: set build deny, block-break deny or block-place deny to protect an area. A region already protects without changing anything, and these flags apply to everyone, members included: they even block pistons. The official documentation recommends not touching the build flag unless you fully understand it.

04

The __global__ region, priorities and inheritance

The __global__ region covers the whole world, with the lowest priority. Each world has its own, created as soon as you modify it. It protects nothing by default, but its flags apply everywhere no other region says otherwise:

/rg flag __global__ creeper-explosion deny

To forbid building throughout the wilderness, except in regions where a player is a member, use the passthrough flag, never build:

/rg flag __global__ passthrough deny

Priorities. When two regions with the same priority overlap, a player must be a member of both to build. Otherwise, only the highest-priority region counts, for members as well as for flags. Each region has priority 0 by default:

/rg setpriority boutique 10

At equal priority, for flags that take allow or deny, deny wins.

Inheritance. A region can have a parent, from which it takes the members, the owners and any flags it does not define itself. This is handy for a town split into plots:

/rg setparent parcelle1 ville

The owners of ville can then build in parcelle1, while a member of parcelle1 only builds in their own plot. The parent must not have a higher priority than its children.

A region without protection. For an arena where combat is allowed without stopping the spawn's builders from working there, combine two flags:

/rg define arene
/rg flag arene pvp allow
/rg flag arene passthrough allow
05

Good practices and common errors

  • "The protection does not work": an operator, or a player with all permissions, bypasses WorldGuard's protections. Test with an account that is not an operator, or toggle the bypass with /rg bypass. To reduce your team's rights, see Minecraft admin commands.
  • Pistons no longer work: a build flag has probably been set, often on __global__. Remove it with /rg flag __global__ build.
  • A player cannot build in their own area: another region overlaps it. /rg info, typed on the spot, lists the regions involved; add the player or raise their region's priority.
  • Protect the full height: without //expand vert, a player can dig under the region or build above it.
  • Clear names: spawn, ville-nord, base-pseudo; you will find them more easily with /rg list.
  • Backups: regions are saved automatically, in the plugins/WorldGuard/worlds folder, one subfolder per world. Back up this folder along with the world, as explained in the guide backing up a Minecraft world.
06

On CloudFive

On our Minecraft hosting plans, Paper and Purpur install in one click from the customer area. You drop WorldEdit and WorldGuard into the plugins folder with the file manager or over SFTP, and the customer area console accepts rg and lp commands directly. Backups let you roll back after a handling mistake.

The servers run in France on Ryzen 9 9950X, with DDR5 memory and NVMe storage, with Anti-DDoS Premium included. Plans are monthly, with no commitment, from €8, with support in French 7 days a week.

07

Frequently asked questions

How do I install WorldGuard on a Minecraft server?

You need a Paper, Purpur or Spigot server and the WorldEdit plugin in its Bukkit version. Drop both .jar files into the plugins folder, in the version that matches your Minecraft, then restart the server and check the log.

How do I create a region with WorldGuard?

Get the wooden axe with //wand, left-click one corner and right-click the opposite corner, then type //expand vert to cover the full height. Then create the region with /rg define followed by its name: it is protected straight away.

How do I let a player build in a WorldGuard region?

Add them as a member with /rg addmember followed by the region name and their username, or as an owner with /rg addowner. For a whole permission group, use the g: prefix in front of the group name.

How do I disable PvP at spawn with WorldGuard?

Type /rg flag spawn pvp deny, where spawn is the name of your region. To apply it to the whole map, set the flag on the __global__ region; a command without a value, such as /rg flag spawn pvp, removes the flag.

Why does WorldGuard protection not work for me?

Operators and players with all permissions bypass the protections: the area seems open even though it is protected. Test with a non-operator account, or turn off the bypass with /rg bypass.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay