Saltar al contenido principal

protection_settings

Configuration for protection tooling — settings entry.

Entry Information

PropertyValue
Entry IDprotection_settings
TypeSettings
ColorBlue
Iconmdi:shield-cog

Fields

FieldTypeDescription
inspectRefreshTicksVar<Int>Tick delay between inspection updates (minimum 5 ticks)
inspectBossBarColorStringBossBar color used during /tw protection inspect
inspectBossBarOverlayStringBossBar overlay used during /tw protection inspect
showDeniedMessagesVar<Boolean>Display chat messages when a player is denied an action
deniedMessageChatVar<Boolean>Send denied messages to the player's chat
deniedMessageActionBarVar<Boolean>Send denied messages to the action bar
deniedMessageBossBarVar<Boolean>Send denied messages via a temporary boss bar
customMessageChatVar<Boolean>Send custom flag messages to the player's chat
customMessageActionBarVar<Boolean>Send custom flag messages to the action bar
customMessageBossBarVar<Boolean>Send custom flag messages via a temporary boss bar
messageBossBarDurationTicksIntDuration in ticks before boss bar messages disappear (minimum 20 ticks)
deniedMessageTemplateStringMiniMessage template for denied action messages. Use {reason} for the raw reason and {reason_line} for ': reason'.
messageTemplatesProtectionMessageSettingsAdvanced MiniMessage templates used for denied feedback and inspection mode. Supports placeholders documented in the protection guide.
messagesProtectionMessagesConfigure all in-game messages used by protection tools. Supports MiniMessage formatting and placeholders documented in the Protection guide.

Usage Example

- entry: protection_settings
name: "Configuration for protection tooling"
inspectRefreshTicks: 0
inspectBossBarColor: ""
inspectBossBarOverlay: ""
showDeniedMessages: false
deniedMessageChat: false
deniedMessageActionBar: false
deniedMessageBossBar: false
customMessageChat: false
customMessageActionBar: false
customMessageBossBar: false
messageBossBarDurationTicks: 0
deniedMessageTemplate: ""
messageTemplates: ""
messages: ""