メインコンテンツまでスキップ

staff_auth_config

Staff Auth Config — config entry.

Entry Information

PropertyValue
Entry IDstaff_auth_config
TypeConfig
ColorOrange
Iconmdi:shield-lock

Description

Configuration entry for StaffAuth. Defines permission, messages, sounds, and security settings. Event handling is done by [btc.renaud.staffauth.events.AuthListeners].

Fields

FieldTypeDescription
staffPermissionStringPermission that marks a player as staff and requires authentication.
maxAttemptsIntMaximum failed attempts before the player is kicked. 0 = disabled.
maxAttemptsKickMessageVar<String>Kick message when max attempts exceeded. Use {attempts} placeholder.
registerMessageVar<String>Message sent when an unregistered staff joins.
loginMessageVar<String>Message sent when a registered staff joins.
guiTitleVar<String>Title of the GUI authentication menu.
blockMessageVar<String>Message sent when interacting while unauthenticated.
successMessageVar<String>Message sent on successful authentication.
guiLoginPromptVar<String>Subtitle shown on the GUI login screen before password entry.
wrongPasswordMessageVar<String>Message sent on wrong password. Use {attempts} and {max} placeholders.
minPasswordLengthIntMinimum password length.
passwordTooShortMessageVar<String>Message when password is too short. Use {length} placeholder.
passwordMismatchMessageVar<String>Message sent on password mismatch during registration.
successSoundSoundSound played on successful authentication.
errorSoundSoundSound played on authentication error.
useGuiWhenAvailableBooleanWhether to use the GUI menu when the GUI extension is available.
preventFallDamageBooleanWhether to prevent fall damage for unauthenticated players.
sessionTimeoutMinutesIntSession timeout in minutes. 0 = no timeout.

Usage Example

- entry: staff_auth_config
name: "Staff Auth Config"
staffPermission: ""
maxAttempts: 0
maxAttemptsKickMessage: ""
registerMessage: ""
loginMessage: ""
guiTitle: ""
blockMessage: ""
successMessage: ""
guiLoginPrompt: ""
wrongPasswordMessage: ""
minPasswordLength: 0
passwordTooShortMessage: ""
passwordMismatchMessage: ""
successSound: ""
errorSound: ""
useGuiWhenAvailable: false
preventFallDamage: false
sessionTimeoutMinutes: 0