Pular para o conteúdo principal

staff_auth_config

Staff Auth Config — configuration entry.

Entry Information

PropertyValue
Entry IDstaff_auth_config
TypeConfig
ColorOrange
Iconmdi:shield-lock

Fields

FieldTypeDescription
staffPermissionStringPermission that marks a player as staff and requires authentication.
adminPermissionStringPermission required for reset and force logout operations.
commandNameStringRoot command name, normally staffauth.
maxAttemptsIntFailed attempts before kick; 0 disables the limit.
maxAttemptsKickMessageVar<String>Kick message; supports {attempts}.
registerMessageVar<String>Message for an unregistered staff member.
loginMessageVar<String>Message for a registered staff member.
guiTitleVar<String>Default authentication menu title.
blockMessageVar<String>Message shown when an unauthenticated player is blocked.
successMessageVar<String>Successful authentication message.
guiLoginPromptVar<String>Login prompt shown by the GUI/Dialog.
wrongPasswordMessageVar<String>Wrong-password message; supports {attempts} and {max}.
minPasswordLengthIntMinimum password length.
maxPasswordLengthIntMaximum password length accepted by the UI.
bcryptCostIntBCrypt cost for new registrations; clamped to the supported range.
attemptCooldownSecondsIntBase cooldown after a failed attempt.
passwordTooShortMessageVar<String>Invalid-length message; supports {length} and {max}.
passwordMismatchMessageVar<String>Registration confirmation mismatch message.
successSoundSoundSound played after successful authentication.
errorSoundSoundSound played on authentication errors.
useGuiWhenAvailableBooleanUses the GUI/Dialog when the GUI extension is available.
preventFallDamageBooleanPrevents fall damage while authentication is pending.
sessionTimeoutMinutesIntAuthenticated session timeout; 0 disables expiration.

Security notes

Passwords are never command arguments or chat messages. The password artifact stores only BCrypt hashes. Do not change the generated artifact ID after the extension has been deployed, otherwise existing hashes will no longer be found.