Minecraft
WorldEdit and WorldGuard Basics for Minecraft Server Owners
WorldEdit lets you edit large areas quickly. WorldGuard protects regions from griefing. Both are plugins for Paper and Spigot style servers, so install them by uploading the jars to the plugins folder and restarting. Use versions that match your Minecraft version.
WorldEdit essentials
Commands start with a double slash. You need operator status or the right permissions.
- Run //wand to get the selection tool.
- Left click one corner and right click the opposite corner. You can also stand in place and use //pos1 and //pos2.
- Run //set stone to fill the selection with a block.
- Run //undo if you made a mistake, and //redo to reapply.
Other useful commands:
- //copy and //paste to duplicate builds.
- //replace to swap one block type for another.
- //rotate and //flip to adjust a copied build.
Big edits can lag the server, so work in smaller pieces if TPS drops.
WorldGuard regions
WorldGuard uses the WorldEdit selection to define a region.
- Select the area with the wand.
- Run /rg define spawn to create a region named spawn.
- Add owners with /rg addowner spawn PlayerName, or members with /rg addmember.
- Run /rg info spawn to confirm.
Flags
Flags decide what is allowed inside a region.
- /rg flag spawn pvp deny turns off player fighting.
- /rg flag spawn build deny stops building by non-members.
- Other flags control mob spawning, explosions and entry. Run /rg flag with a region name for the list in your version.
Tips
- Selecting the full height matters. Use //expand vert so the region covers bedrock to sky.
- The special region named __global__ affects the whole world.
- Test with a non-operator account, since operators bypass protection by default.
- Back up before large edits, and consider CoreProtect for a log of changes.