8Crafter's Server Utilities Wiki
  • Home
  • Discord
  • Contribute
  • ModBay
Changelogs
  • Changelogs
  • Releases
    • v1.1.0
    • v1.2.0
    • v1.2.1
    • v1.2.2
    • v1.3.0
    • v1.3.1
    • v1.3.2
    • v1.3.3
    • v1.3.4
    • v1.3.5
    • v1.3.6
    • v1.4.0
    • v1.5.0
    • v1.5.1
    • v1.6.0
    • v1.7.0
    • v1.8.0
    • v1.9.0
    • v1.10.2
    • v1.11.0
    • v1.12.0
    • v1.12.1
    • v1.12.2
    • v1.12.3
    • v1.13.0
    • v1.14.0
    • v1.14.1
    • v1.15.0
    • v1.15.1
    • v1.16.0
    • v1.17.0
    • v1.18.0
    • v1.18.1
    • v1.18.2
    • v1.19.0
    • v1.20.0
    • v1.21.0
    • v1.22.0
    • v1.23.0
    • v1.23.1
    • v1.24.0
    • v1.25.0
    • v1.25.1
    • v1.25.2
    • v1.26.0
    • v1.27.0
    • v1.28.0
    • v1.28.1
    • v1.28.2
    • v1.28.3
    • v1.28.4
    • v1.28.5
    • v1.29.0
    • v1.29.1
    • v1.29.2
    • v1.29.3
    • v1.29.4
    • v1.30.0
    • v1.30.1
    • v1.31.0
    • v1.32.0
    • v1.32.1
    • v1.33.0
    • v1.33.1
    • v1.34.0
    • v1.34.1
    • v1.35.0
    • v1.36.0
    • v1.36.1
    • v1.36.2
    • v1.36.3
    • v1.36.4
    • v1.36.5
    • v1.36.6
    • v1.37.0
  • Pre-Releases
    • v0.1.0
    • v0.2.0
    • v0.3.0
    • v0.3.1
    • v0.3.2
    • v0.4.0
    • v0.5.0
    • v0.5.1
    • v0.6.0
    • v0.8.0
    • v0.8.1
    • v0.8.2
    • v0.8.3
    • v1.0.0-RC.1
    • v1.0.0-RC.2
    • v1.20.0-preview.20
    • v1.20.0-preview.21
    • v1.20.0-preview.22
    • v1.23.0-preview.20+BUILD.1
    • v1.26.0-RC.1
    • v1.26.0-RC.2
    • v1.26.0-RC.3
    • v1.35.0-RC.1
    • v1.35.0-RC.2
General
  • General Information
  • Troubleshooting
  • Downloading
  • Installing
  • Getting Started
Commands
  • Commands Basics
  • Parameters Basics
  • Parameter Types
Commands List
  • Main
    • \align
    • \aligncenter
    • \attribute
    • \binvsee
    • \block
    • \bluemodsversion
    • \clearchat
    • \eval
    • \gma
    • \gmc
    • \gmd
    • \gmg
    • \gmp
    • \gmr
    • \gms
    • \help
    • \mainmenu
    • \playermenu
    • \tpa
    • \tpaccept
    • \tpdeny
  • WorldEdit
    • \\backuparea
    • \\ceil
    • \\chunk
    • \\cone
    • \\copy
    • \\cube
      Non-Functional
    • \\cut
    • \\cyl
    • \\deletesavedpos
    • \\drain
    • \\expandselection
    • \\flood
    • \\floor
    • \\generate
    • \\generatecallback
      Non-Functional
    • \\generatef
    • \\generatejs
      Non-Functional
    • \\generates
    • \\generateterrain
    • \\hcone
      Non-Functional
    • \\hcube
    • \\hcyl
      Non-Functional
    • \\hpos1
    • \\hpos2
    • \\hreplace
    • \\hsphere
    • \\idtfill
    • \\itfill
    • \\listpos
    • \\loadchunks
    • \\loadpos
    • \\maze
    • \\move
      Non-Functional
    • \\offset
    • \\omove
      Non-Functional
    • \\oreplace
    • \\paste
    • \\pos1
    • \\pos2
    • \\protectarea
    • \\regenerateblocks
    • \\remove
    • \\replace
    • \\savepos
    • \\savestructure
    • \\selectmode
    • \\set
    • \\seti
    • \\shift
    • \\smove
      Non-Functional
    • \\sphere
    • \\stack
    • \\stsphere
    • \\tube
    • \\undo
    • \\walls
    • \selectionrender
  • Removed
    • \settings (Old)
Systems
  • Anti-Spam System
  • Ban System
  • Chat Ranks System
  • Home System
  • Player Shop System
  • Rank Name Tags System
  • Server Shop System
  • Shop System
  • Sign Shop System
  • Spawn Protection System
  • TPA System
Settings
  • Chat Ranks Settings
  • General Settings
  • Home System Settings
  • Manage Game Rules
  • Module Imports
  • Money System Settings
  • Notifications Settings
  • Personal Settings
  • Script Settings
  • TPA System Settings
  • UI Settings
  • Extra Features
    • Extra Features Settings
  • Advanced
    • Advanced Settings
/scriptevent Commands
  • s:e
Blocks
  • ifill Command Placeholder Block
  • Invalid Block Placeholder
Entities
  • Tickingarea
  • Tickingarea 6
Items
  • Debug Sticks
    • Debug Stick
    • Editor Stick
  • UI Items
    • Main Menu
    • Player Menu
  • WorldEdit Items
    • Selection Tool
  • Misc.
    • Programmable Items
    • Ultra Bundle
    • WorldEdit Brushes
Main Menu
  • Main Menu
Player Menu
  • Player Menu
Ultra Security Mode
  • Command Required Permission Levels
Misc
  • Add-On Version Compatibility List
Other Features
  • Enchanting Any Item With Any Enchantment
  • Item Customization
  • No AI Entities
  • Particle Customization
  • Simulated Players
Meta
  • Add-On Performance
  • Style Guide
  • Useful Links

\\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 ​

CommandTriggerResult

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
OtherwiseSuccessful

Examples ​

  • To add the selected area as the protected area to the built-in category noBlockBreakArea:, with the name myAntiBlockBreakingArea1, and the icon path textures/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 name myCustomProtectedArea1, and the icon path textures/ui/debug_glyph_color:
    • \\protectarea myCustomCategory myCustomProtectedArea1 0 textures/ui/debug_glyph_color

History ​

Debug Sticks
? ?

Added \\protectarea.

v1.33.0 release

The \\protectarea command now supports custom protected area categories. The built-in ones are still specified exactly the same way, but for the custom ones, you just put the same id that you put when creating the category, with the custom categories, you do not include a : at the end.

Added the o flag to the \\protectarea command. This flag causes the command to overwrite the saved protected area if one exists with the same id.

Upcoming Server Utilities
v1.35.0 RC1

Fixed a bug where the \\protectarea command would always throw an error saying that the area category was invalid, even when it was valid.

Edit \\protectarea on GitHub

8Crafter's Server Utilities Wiki by 8Crafter-Studios

"Minecraft" is a trademark of Mojang AB.

8Crafter-Studios, 8Crafter's Server Utilities Wiki and 8crafter.com are not affiliated in any way with Microsoft or Mojang AB.

  • Privacy Policy
  • Join our Discord
  • Learn how to Contribute
  • Visit our Repository
  • Wiki Settings