Saltar al contenido principal

Protection Settings

Configuration for protection tooling

Campos

CampoTipoPredeterminadoDescripción
inspectRefreshTicksVar<Int>40Tick delay between inspection updates (minimum 5 ticks)
inspectBossBarColorStringBLUEBossBar color used during /tw protection inspect
inspectBossBarOverlayStringPROGRESSBossBar overlay used during /tw protection inspect
showDeniedMessagesVar<Boolean>trueDisplay chat messages when a player is denied an action
deniedMessageChatVar<Boolean>trueSend denied messages to the player's chat
deniedMessageActionBarVar<Boolean>falseSend denied messages to the action bar
deniedMessageBossBarVar<Boolean>falseSend denied messages via a temporary boss bar
customMessageChatVar<Boolean>trueSend custom flag messages to the player's chat
customMessageActionBarVar<Boolean>falseSend custom flag messages to the action bar
customMessageBossBarVar<Boolean>falseSend custom flag messages via a temporary boss bar
messageBossBarDurationTicksInt100Duration in ticks before boss bar messages disappear (minimum 20 ticks)
deniedMessageTemplateString<red>Denied Action{reason_line}</red>MiniMessage template for denied action messages. Use {reason} for the raw reason and {reason_line} for ': reason'.
messageTemplatesProtectionMessageSettings—Advanced MiniMessage templates used for denied feedback and inspection mode. Supports placeholders documented in the protection guide.
ProtectionMessageSettings (26)
CampoTipoPredeterminadoDescripción
deniedActionString<red>Action denied{reason_line}</red>Denied action template. Placeholders: {reason}, {reason_line} (prefixed with ': ' when reason available).
deniedEntryString<red>Entry denied ({flag}) in {region}.</red>Denied entry template. Placeholders: {region}, {flag}.
inspectionToggleOnString<green>Flag inspection enabled</green>Action bar feedback when inspection is enabled.
inspectionToggleOffString<yellow>Flag inspection disabled</yellow>Action bar feedback when inspection is disabled.
inspectionInitializingBossBarString<gold>Loading inspection data…</gold>BossBar title displayed while the inspection session initializes.
inspectionNoRegionActionBarString<gray>No active regions</gray>Action bar message displayed when no regions are active during inspection.
inspectionNoRegionBossBarString<dark_gray>Inspection: no regions</dark_gray>BossBar title displayed when no regions are active during inspection.
inspectionActionBarPrefixString<gold>[P{priority}]</gold> <aqua>[{region}]</aqua> Prefix for the inspection action bar. Placeholders: {priority}, {region}.
inspectionActionBarNoFlagsString<gray>No flags configured</gray>Action bar fallback when the dominant region exposes no active flags.
inspectionActionBarDetailString<gold>{flag}</gold><dark_gray>: </dark_gray>{value}{inherited}{overrides}Action bar entry for each flag. Placeholders: {flag}, {value}, {inherited}, {overrides}.
inspectionActionBarSeparatorString<dark_gray> </dark_gray>Separator between flag entries in the inspection action bar.
inspectionActionBarMoreFlagsString<dark_gray> …</dark_gray>Suffix appended when additional flag previews are truncated.
inspectionActionBarAdditionalRegionsString<blue> • +{count} region(s)</blue>Suffix appended when additional regions overlap. Placeholder: {count}.
inspectionActionBarInheritedIndicatorString<blue>↑</blue>Indicator appended to action bar details when a flag is inherited.
inspectionActionBarOverrideIndicatorString<light_purple>↻</light_purple>Indicator appended to action bar details when a flag overrides its parent.
inspectionBossBarTitleString<green>#{index}</green><dark_gray>/</dark_gray><green>{total}</green><dark_gray> • </dark_gray>" + "<gold>P{priority}</gold><dark_gray> • </dark_gray><aqua>{region}</aqua>{flags}{summary}BossBar title template per region. Placeholders: {index}, {total}, {priority}, {region}, {flags}, {summary}.
inspectionBossBarNoFlagsString<gray>No active flags</gray>BossBar summary when a region exposes no effective flags.
inspectionBossBarSummaryBaseString<gold>{active} active</gold><dark_gray> • </dark_gray><aqua>{local} local</aqua>Base summary fragment. Placeholders: {active}, {local}.
inspectionBossBarSummaryInheritedString<dark_gray> • </dark_gray><blue>{count} inherited</blue>Summary fragment appended when inherited flags exist. Placeholder: {count}.
inspectionBossBarSummaryOverridesString<dark_gray> • </dark_gray><light_purple>{count} overrides</light_purple>Summary fragment appended when overrides exist. Placeholder: {count}.
inspectionBossBarDetailPrefixString<dark_gray> • </dark_gray>Prefix inserted before the boss bar flag detail list.
inspectionBossBarDetailString<gold>{flag}</gold><dark_gray>=</dark_gray>{value}{inherited}{overrides}BossBar detail entry per flag. Placeholders: {flag}, {value}, {inherited}, {overrides}.
inspectionBossBarDetailSeparatorString<dark_gray>, </dark_gray>Separator between boss bar flag details.
inspectionBossBarDetailMoreString<dark_gray> …</dark_gray>Suffix appended when boss bar flag details are truncated.
inspectionBossBarDetailInheritedIndicatorString<blue>↑</blue>Indicator appended to boss bar flag details when inherited.
inspectionBossBarDetailOverrideIndicatorString<light_purple>↻</light_purple>Indicator appended to boss bar flag details when overriding a parent value.
messagesProtectionMessages—Configure all in-game messages used by protection tools. Supports MiniMessage formatting and placeholders documented in the Protection guide.
ProtectionMessages (4)
CampoTipoPredeterminadoDescripción
selectionSelectionMessages——
SelectionMessages (26)
CampoTipoPredeterminadoDescripción
missingArtifactString<red>Region definition <definition> is not linked to any artifact.</red>—
globalAppliedString<green>Applied global region for <label>.</green>—
globalCaptureDeniedString<red>Global artifacts cannot be captured.</red>—
activationString<green>Selection mode enabled for <label>. Use the toolbar to add or remove points, then validate from the menu.</green>—
noSessionString<red>You do not have an active selection session.</red>—
pointAddedString<aqua>Point <index> added: <x> <y> <z></aqua>—
pointUpdatedString<aqua>Point <index> updated: <x> <y> <z></aqua>—
pointAddFailedString<red>Cannot add point <index>: index is too high.</red>—
pointRemovedString<gray>Removed point <index>: <x> <y> <z></gray>—
lastPointRemovedString<gray>Removed last point: <x> <y> <z></gray>—
noPointToRemoveString<yellow>There is no point to remove.</yellow>—
pointMissingString<yellow>No point <index> recorded.</yellow>—
pointInfoString<light_purple>Point <index>: <x>, <y>, <z></light_purple>—
worldMismatchString<red>All points must belong to the same world (<world>).</red>—
sessionCancelledString<gray>Selection cancelled.</gray>—
selectionAppliedString<green>Selection applied.</green>—
notEnoughPointsString<yellow>Add at least <required> points before applying.</yellow>—
mixedWorldsString<red>All points must be in the same world (<worlds>).</red>—
invalidGeometryString<red>The current selection cannot be converted into a region.</red>—
selectionSyncedString<yellow>Selection synchronised (<points> point<plural_suffix>).</yellow>—
worldEditUnavailableForGlobalString<red>Cannot import a WorldEdit selection for a global region.</red>—
worldEditMissingAdapterString<red>No compatible WorldEdit adapter was detected.</red>—
worldEditNotFoundString<red>No WorldEdit selection detected.</red>—
worldEditSessionUnavailableString<red>Unable to open the capture session for this artifact.</red>—
worldEditImportedString<yellow>Imported WorldEdit selection (<points> point<plural_suffix>).</yellow>—
ensureSameWorldString<red>All points must belong to the same world (<world>).</red>—
contentContentMessages——
ContentMessages (9)
CampoTipoPredeterminadoDescripción
addPointNameString<gold><bold>Add point</bold></gold>—
addPointLoreList<String>——
removeLastNameString<red><bold>Remove last</bold></red>—
removeLastLoreList<String>——
modeHintString<gray>Click to change the selection mode.</gray>—
applyNameString<green><bold>Apply</bold></green>—
applyLoreList<String>——
cancelNameString<red><bold>Cancel</bold></red>—
cancelLoreList<String>——
modesModeMessages——
ModeMessages (2)
CampoTipoPredeterminadoDescripción
cuboidModeEntry——
polygonModeEntry——
commandsCommandMessages——
CommandMessages (6)
CampoTipoPredeterminadoDescripción
generalGeneralMessages——
listListMessages——
infoInfoMessages——
flagsFlagsMessages——
inspectInspectMessages——
teleportTeleportMessages——

How to use it​

Create at most one of this entry: the first one found is used. It controls where the denied and custom messages appear (chat, action bar, boss bar), the MiniMessage templates (deniedMessageTemplate and messageTemplates accept {reason}, {reason_line}, {region} and {flag} where the help says so), and the inspection mode. inspectRefreshTicks has a minimum of 5 ticks and messageBossBarDurationTicks a minimum of 20. Invalid boss bar colours and overlays fall back to BLUE and PROGRESS with a warning in the log. The messages field holds the text of the selection toolbar and command output.