Modal

Modal Menu: A single screen with a title, content panel / description, and only 2 buttons.

menu:
  test_modal:
    type: MODAL
    server: Lobby
    title: "Modal test $1"
    description: "Something here to write"
    buttons:
      bottone_1:
        text: "Your_name » %player_name%"
        onClick: "command say hi $1"
      bottone_2:
        text: "Other » thing"
        onClick: "command say hello $1"

How it works:

  1. You place a “menu” called test_modal in your config.

  2. It’s marked as type: MODAL, so it’s a basic single-page menu with only 2 buttons.

  3. Each button can have:

    • text

    • onClick (the action to run when pressed) - see Actions.

  4. Descriptionis what will be shown on the main content panel

  5. Permission custom permission for this menu to be opened

  6. (Proxy Only) server define the server you want this menu to work on

Last updated