Menus and Actions

Menus live in menus.yml.

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

  • enabled
  • slot
  • slots
  • material
  • amount
  • custom-model-data
  • name
  • lore
  • glow
  • hide-flags
  • permission
  • actions
  • locked

Action Types

ActionExample
Player commandplayer_command: spawn
Console commandconsole_command: give %player% diamond 1
Messagemessage: &aHello!
Broadcastbroadcast: &bNews!
Titletitle: &eWelcome
Actionbaractionbar: &7Loading...
Soundsound: UI_BUTTON_CLICK
Open menuopen_menu: rewards
Close menuclose:
Teleport spawnteleport_spawn:
Connect serverconnect: survival
Select cosmeticselect_cosmetic: blue-aura
Preview cosmeticpreview_cosmetic: blue-aura
Clear cosmeticclear_cosmetic:
Toggle visibilitytoggle_visibility:
Claim daily rewardclaim_daily_reward:
Send resource packsend_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.