Staff Auth Menu
Staff Auth Menu
Action entry that opens the StaffAuth GUI menu. Displays a keypad-style interface where staff members can enter their password using digit buttons, with Backspace and Submit buttons. Supported button types (via staffauthButtonType in layout pool items): - PASSWORD_DISPLAY — Shows masked password dots - LOGIN / REGISTER — Submit button (label adapts to state) - BACKSPACE — Removes last digit - CANCEL — Closes the menu - DIGIT_0 through DIGIT_9 — Number keypad
Campos
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
inventoryTitle | Var<String> | — | Title of the authentication menu. |
inventoryRows | Int | 4 | Number of rows (1-6). |
guiType | GuiType | CUSTOM | GUI type to use (CUSTOM, BOOK, etc.). |
layoutPool | List<LayoutData> | empty | Pool of layout definitions. Items with `staffauthButtonType` are resolved as auth buttons. |
mainLayoutId | String? | — | ID of the main layout from the pool. |
audio | GuiAudioData | — | Audio configuration for the GUI. |
Campos comunes de TypeWriter (criteria, modifiers, triggers)
| Campo | Tipo | Predeterminado | Descripción |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
triggers | List<Ref<TriggerableEntry>> | empty | — |
How to use it
This action opens the number keypad menu. The default login flow (join, /staffauth) uses a Paper dialog instead, so you only need this entry if you want the keypad look.
Build the keypad in layoutPool and choose the starting layout with mainLayoutId. Items of the layout can carry a StaffAuth button type: DIGIT_0 to DIGIT_9, PASSWORD_DISPLAY, LOGIN, REGISTER, BACKSPACE and CANCEL. Items without a button type are plain decoration. inventoryTitle overrides the config's guiTitle; inventoryRows is clamped between 1 and 6.
The menu refreshes itself after every key press by reopening the first Staff Auth Menu entry, so keep a single one. A player who is already authenticated just gets a message.