8Crafter's Server Utilities Wiki
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
    • v1.37.1
    • v1.38.0
    • v1.38.1
    • v1.39.0
    • v1.40.0
    • v1.40.1
    • v1.40.2
    • v1.40.3
    • v1.41.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
  • Upcoming
    • v1.42.0
General
  • General Information
  • Troubleshooting
  • Downloading
  • Installing
  • Getting Started
Commands
  • Commands Basics
  • Parameters Basics
  • Parameter Types
Commands List
  • Main
    • \align
    • \aligncenter
    • \attribute
    • \binvsee
    • \block
    • \bluemodsversion
    • \chatcommandui
    • \chatsendui
    • \chunkban
    • \clear
    • \clearchat
    • \clearenderchest
    • \clearenderchestslot
    • \cloneitem
    • \closeuis
    • \compressitems
    • \compressitemscontainer
    • \compressitemscontainerb
    • \compressitemsshulker
    • \copyitem
    • \copyitemfrom
    • \createexplosion
    • \data
      Non-Functional
    • \datapickblock
    • \debugstickdyingmode
    • \defaulthealth
    • \disconnect
    • \drain
    • \dupeitem
    • \editorstick
    • \editorstickb
    • \editorstickc
    • \einvsee
    • \einvseeb
    • \enchantmentbarrels
    • \enderchest
    • \entityscaleversion
    • \eval
    • \execute
    • \extinguish
    • \extrafeaturessettings
    • \fill
    • \fillillegal
    • \fillinventory
    • \filljunk
    • \fillop
    • \fillrandom
    • \findtransformdvindex
    • \gettransformst
    • \getuuid
    • \getworldspawnpoint
    • \give
    • \giveb
    • \givec
    • \gma
    • \gmc
    • \gmd
    • \gmg
    • \gmp
    • \gmr
    • \gms
    • \gohome
    • \ground
    • \h#
    • \hcontents
    • \heal
    • \health
    • \help
    • \hlist
    • \home
    • \hset
    • \idtfill
    • \ifill
    • \ifillb
    • \ifillc
    • \ifilld
    • \igfill
    • \ignite
    • \ihollow
    • \invsee
    • \invseep
    • \invseeuuidmode
    • \iogfill
    • \ioutline
    • \ipillars
    • \item
    • \itfill
    • \ithollow
    • \itoutline
    • \itpillars
    • \itwalls
    • \iwalls
    • \jumpto
    • \kick
    • \listbans
    • \listidbans
    • \listnamebans
    • \liststructures
    • \mainmenu
    • \managecommands
    • \manageplayers
    • \managescriptautoeval
    • \maxhealth
    • \messageui
    • \minhealth
    • \morph
    • \notificationsettings
    • \offlineinfo
    • \offlineinfoescaped
    • \offlineinforaw
    • \offlineinfourl
    • \offlineinvsee
    • \offlineuuidinfo
    • \offlineuuidinfoescaped
    • \offlineuuidinforaw
    • \offlineuuidinfourl
    • \offlineuuidinvsee
    • \phase
    • \playermenu
    • \playershopsystemsettings
    • \printlayers
    • \pthru
    • \rank
    • \remexp
    • \remexpentity
    • \remexpne
    • \removeotheritemenchantments
    • \run
    • \scale
    • \scanenderchest
    • \scanenderchestc
    • \servershopsystemsettings
    • \setitem
    • \setitemb
    • \setnametag
    • \settings
    • \shopsystemsettings
    • \shuffleinventory
    • \spawn
    • \spawnitem
      Non-Functional
    • \stopalldbintervals
    • \stopallsaintervals
    • \stopgen
    • \structure
    • \summon
    • \swapinventories
    • \swapinventoriesb
    • \swapitems
    • \swaprows
    • \takeitem
    • \terminal
    • \thru
    • \timezone
    • \tint
    • \top
    • \tpa
    • \tpaccept
    • \tpdeny
    • \tps
    • \transferitem
    • \transformresultatdvindex
    • \up
    • \version
    • \viewplayershops
    • \viewservershops
    • \visualscale
    • \visualscaleenabled
    • \vthru
    • \w
    • \warp
    • \warplist
    • \warplistdetails
    • \warplistrawdata
    • \warpremove
    • \warpreset
    • \warpset
    • \wlist
    • \wlistdetails
    • \wlistrawdata
    • \wremove
    • \wreset
    • \wset
  • 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
    • \\overlay
    • \\paste
    • \\pos1
    • \\pos2
    • \\protectarea
    • \\regenerateblocks
    • \\remove
    • \\replace
    • \\savepos
    • \\savestructure
    • \\selectmode
    • \\set
    • \\seti
    • \\shift
    • \\smove
      Non-Functional
    • \\sphere
    • \\stack
    • \\stsphere
    • \\tube
    • \\undo
    • \\walls
    • \brush
    • \butcher
    • \butcherdespawn
    • \chunkinfo
    • \remove
    • \replacenear
    • \selectioninfo
    • \snapshot
    • \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
  • Outline Renderer
  • Player Inventory Save Storage
  • Player Shop Recieved Shop Items Storage
  • Saved Item
  • Saved Shop Item
  • Tickingarea
  • Tickingarea 2
  • Tickingarea 3
  • Tickingarea 4
  • Tickingarea 5
  • Tickingarea 6
Items
  • Debug Sticks
    • Command Runner
    • Debug Screen
    • Debug Stick
    • Editor Stick
    • Editor Stick B
    • Editor Stick C
    • Entity Controller
    • Entity Debug Stick
    • Inventory Controller
    • Pick Block Stick
    • Player Controller
    • Player Debug Stick
    • Script Runner
  • UI Items
    • Main Menu
    • Player Menu
    • Selection Menu (Old)
  • WorldEdit Items
    • Selection Tool
    • WorldEdit Brushes
  • Misc.
    • Diamond Downgrade Smithing Template
    • Enchantment Transfer Smithing Template
    • Programmable Items
    • Smithing Table Enchanted Book
    • Ultra Bundle
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
  • Emojis
  • Loot Tables
  • Music
  • Sounds
  • Useful Links

Video Settings

Theme


Debug



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

Adds the selection as a protected area

Arguments ​

[-o]: flags

A flags parameter.

Here are what each of the flags do:

o: Causes the command to overwrite the saved protected area if one exists with the same id.

<areaType: string>: string

The category of the protected area.

For built-in categories, it should be specified like noBlockBreakArea:. The : is necessary.

For custom categories, it should NOT have a : at the end.

<name: string>: string

The uniquie identifier of the protected area.

[mode: 0|1(default=0)]: int

The mode of the protected area.

0: The area is protected.

1: The area is excluded from protection from any other areas of the same category.

For example if there was an area with mode 0 of the built-in category noBlockBreakArea: that covered 23 50 26 to 37 80 50, then an area with mode 1 of the bulit-in category noBlockBreakArea: that covered 28 60 29 to 34 70 32 would cause any block breaking in the area 28 60 29 to 34 70 32 to not be prevented.

If there was an area with mode 0 of the built-in category noBlockBreakArea: that covered 23 50 26 to 37 80 50, then an area with mode 1 of the custom category myCustomNoBlockBreakingAreaCategory that covered 28 60 29 to 34 70 32 would NOT cause any block breaking in the area 28 60 29 to 34 70 32 to not be prevented.

If there was an area with mode 0 of the built-in category noBlockBreakArea: that covered 23 50 26 to 37 80 50, then an area with mode 1 of the built-in category protectedArea: that covered 28 60 29 to 34 70 32 would also NOT cause any block breaking in the area 28 60 29 to 34 70 32 to not be prevented.

So for a mode 1 (exclusion) area, it MUST be in the exact same category as the mode 0 (protection) area that it is trying to exclude the protection from.

Mode 1 areas ALWAYS have priority over mode 0 areas.

Default: 0

[icon_path: string]: string

The icon path of the protected area.

This is used in the Manage Protected Areas menu.

If left blank, the area will have no icon.

The icon path should be relative to the root folder of the resource packs.

The file extension is optional.

Examples:

  • textures/blocks/stone
  • textures/ui/debug_glyph_color
  • textures/ui/debug_glyph_color.png
  • pack_icon
  • pack_icon.png

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.

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.com
  • Discord
  • GitHub Repository
  • Wiki Settings