Adding A WorldGuard Region
Adding A WorldGuard Region is an sysop level task that creates regions with specific characteristics, permissions, and protections. WorldGuard is a Spigot/PaperMC plugin: the developers maintain complete documentation here.
[rsc_restrict_content allowed_to=”role” user_role=”author,editor,administrator”]
Selecting and Creating a Region
WorldGuard uses WorldEdit to function. WG can add protections to either cubiod or polygon type-regions. Use world edit to select a region and add protections:
//wand
//sel poly
Note: You can also use //pos1 x,y,z and //pos2 x,y,z (with commas) to specify a cubiod selection when you can’t easily reach the blocks with the WE wand.
Once the region is selected you may want to extend it to all the vertical blocks:
//expand vert
This would not apply to small regions like individual properties or apartments.
To create a WorldGuard region:
/rg create [region name]
If you’d also like to give the region an owner(s) (as in assigning land to a buyer):
/rg define -n [region name] <owner1> <owner2>
Redefining A Region
You can change the definition of an existing region by:
- Selecting a region using WorldEdit as mentioned above.
- Entering this command:
/rg update [region name]
Adding Break/Place and Other Abilities
In a region like New City where players are restricted to avoid griefing and unauthorized building, you may still want to have sub-regions where players can manipulate blocks or have certain abilities not default to a WorldGuard region. This is especially useful for:
- Allow players to purchase or control their own map areas with full permissions. I.e. a piece of land where they build their house. Or, allowing a player to decorate their apartment.
- Working areas: for example Benson’s Farm and the Crack Coal Mine where players need to manipulate blocks to earn a living.
Parameters are set for regions using the flag command:
/rg flag [region name] block-break allow
/rg flag [region name] block-place allow
/rg flag [region name] interact allow
/rg flag [region name] mob-spawning deny
You can use build allow instead of the first two, but this will allow PvP fighting and griefing by giving players virtually all manipulation abilities in normal survival mode.
[/rsc_restrict_content]