WorldGuard/Regions/Tutorial
Contents |
[edit] Selecting regions
Regions are selected using WorldEdit. Give the worldedit.selection.* permission to allow users to select areas.
Unfamiliar with WorldEdit?
[edit] Selecting cuboids
- With the wooden axe, left and right click blocks to set a cuboid's first and second point.
- Use
//expand 10 15 upto make the area 10 units larger upwards and 15 units larger downwards.
//expand vert.[edit] Selecting polygons
- Use
//sell polyto switch to the polygon selection mode. - With the wooden pickaxe, left click to start the first point.
- Right click to add a point to the polygon.
- By default, the minimum Y (vertical distance) is the lowest point's Y, and the maximum Y is the highest point's Y. Use
//expand 10 15 upto make the area 10 units larger upwards and 15 units larger downwards.
//expand vert.Note: As at 2012.05 some of the selection tools in WorldEdit don't seem to be valid for creating regions (eg. sphere) in WorldGuard. Perhaps in a future release?
See also: Check out the help for WorldEdit. WorldEdit has the most powerful area selection and manipulation tools of any plugin or mod in Minecraft so you should become familiar with it!
[edit] Defining regions
Use /region define town g:members tetsu aya to create a region named "Town" with owners Tetsu, Aya, and the group "members". The "g:" prefix specifies a group.
- To add members, which have less abilities than owners (depending on how you set up permissions), use
/region addmember town bob mary frank - To add owners, use
/region addowner town bob mary frank - To remove members or owners, use
/region remowner town bob mary frankor/region remember town bob mary frank. You can remove several owners or members at once. - To set priority (explained in the introduction), use
/region setpriority town 3 - To set a region's parent (see the introduction), use
/region setparent townplot town("town" being the parent)
- Give each group the permission "group.<groupname>" if group-owners and group-members are not working. I.e. The group "citizen" gets the permission group.citizen, and can be added as owner/member of regions as g:citizen.
[edit] Adjusting flags
To adjust "state flags", use "allow", "deny" or "none" (to unset). For other flags, it may depend on the type of flag. For example, an integer flag expects a number. To clear a flag, you simply do not specify a value.
/region flag townplot build allow/region flag townplot greeting Hello there, welcome!/region flag townplot greeting