Menus and Actions
Menus live in menus.yml.
Menu Structure
menus:
profile:
enabled: true
size: 27
title: "&bProfile"
permission: "atlaslobby.menu.profile"
click-cooldown-seconds: 1
filler:
enabled: true
material: BLACK_STAINED_GLASS_PANE
name: " "
lore: []
items:
rewards:
enabled: true
slot: 10
material: CHEST
name: "&eRewards"
lore:
- "&7Open daily rewards."
actions:
- "open_menu: rewards"
Item Fields
enabledslotslotsmaterialamountcustom-model-datanameloreglowhide-flagspermissionactionslocked
Action Types
| Action | Example |
|---|---|
| Player command | player_command: spawn |
| Console command | console_command: give %player% diamond 1 |
| Message | message: &aHello! |
| Broadcast | broadcast: &bNews! |
| Title | title: &eWelcome |
| Actionbar | actionbar: &7Loading... |
| Sound | sound: UI_BUTTON_CLICK |
| Open menu | open_menu: rewards |
| Close menu | close: |
| Teleport spawn | teleport_spawn: |
| Connect server | connect: survival |
| Select cosmetic | select_cosmetic: blue-aura |
| Preview cosmetic | preview_cosmetic: blue-aura |
| Clear cosmetic | clear_cosmetic: |
| Toggle visibility | toggle_visibility: |
| Claim daily reward | claim_daily_reward: |
| Send resource pack | send_resource_pack: |
Recursion Protection
Bad configs should not crash the server. AtlasLobby limits action recursion:
actions:
max-recursion-depth: 8
For server selector entries, prefer proxy-server in servers.yml instead of making a server entry call connect to itself.