Перейти к основному содержимому

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

Поля

ПолеТипПо умолчаниюОписание
inventoryTitleVar<String>—Title of the authentication menu.
inventoryRowsInt4Number of rows (1-6).
guiTypeGuiTypeCUSTOMGUI type to use (CUSTOM, BOOK, etc.).
layoutPoolList<LayoutData>emptyPool of layout definitions. Items with `staffauthButtonType` are resolved as auth buttons.
mainLayoutIdString?—ID of the main layout from the pool.
audioGuiAudioData—Audio configuration for the GUI.
Общие поля TypeWriter (criteria, modifiers, triggers)
ПолеТипПо умолчаниюОписание
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<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.