\\protectarea
Sets the selected area as a protected area.
\\protectarea
Dflt USM Sec Lvl: | WorldEdit |
---|---|
Dflt Required Tags: | canUseChatCommands |
Categories: | system, world, server, worldedit |
Version: | 2.0.0 |
Undo Supported: | N/A |
Functional: | Yes |
Deprecated: | No |
Syntax
\\protectarea [-o] <areaType: string> <name: string> [mode: (0|1)[?=0]] [icon_path: string]
Arguments
[-o]
: flags
<areaType: string>
: string
<name: string>
: string
[mode: 0|1(default=0)]
: int
[icon_path: string]
: string
Result
Command | Trigger | Result |
---|---|---|
Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
There is already an area in the specified category with the same name and the `-o` flag was not specified. | Failed | |
The specified category does not exist. | Failed | |
Otherwise | Successful |
Examples
- To add the selected area as the protected area to the built-in category
noBlockBreakArea:
, with the namemyAntiBlockBreakingArea1
, and the icon pathtextures/blocks/stone
:\\protectarea noBlockBreakArea: myAntiBlockBreakingArea1 0 textures/blocks/stone
- To exclude the selected section of a
noBlockBreakArea:
protected area from the protection:\\protectarea noBlockBreakArea: myAntiBlockBreakingArea1_exclusion1 1
- To addd the selected area as the protected area to the custom category
myCustomCategory
, with the namemyCustomProtectedArea1
, and the icon pathtextures/ui/debug_glyph_color
:\\protectarea myCustomCategory myCustomProtectedArea1 0 textures/ui/debug_glyph_color
History
Debug Sticks | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
? | ? | Added | |||||||||||||
v1.33.0 | release | The | |||||||||||||
Added the | |||||||||||||||
Upcoming Server Utilities | |||||||||||||||
v1.35.0 | RC1 | Fixed a bug where the |