Menu

Click commands

Click commands support PlaceholderAPI placeholders

The leaderboard_player section click commands also support the internal placeholders (%position%, %playerName%, %score%, %scorePretty%, %scoreFormatted%)

Click command typeArgumentDescription

[player] command

command -> command to be executed (without /)

Executes a command as the player

[console] command

command -> command to be executed (without /)

Executes a command as the console

[message] message

command -> command to be executed (without /)

Sends the player a message

[sound] key volume pitch

key -> the sound key (https://www.digminecraft.com/lists/sound_list_pc.php) volume -> optional, a number volume -> optional, a number

Plays the sound to the player

[close]

N/A

Closes the current menu

[previous]

N/A

Goes to the previous page

[next]

N/A

Goes to the next page

Defaults

# Menu item options:
#  material               https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
#  amount                 Item amount (1-64)
#  custom_model_data      Custom Model Data
#  display_name           Item name
#  enchantments           Uses minecraft namespace: https://www.digminecraft.com/lists/enchantment_list_pc.php
#                         Format: enchantment;level
#  lore                   Item lore
#  glow                   (true/false) Whether to make the item appear glowing
#  hide_enchants          (true/false) Whether to hide the item enchantments
#  hide_attributes        (true/false) Whether to hide the item attributes (Weapons, Armor...)
#  hide_unbreakable       (true/false) Whether to hide the unbreakable tag
#  hide_destroys          (true/false) Whether to hide the destroys tag
#  hide_placed_on         (true/false) Whether to hide the placed on tag
#  hide_potion_effects    (true/false) Whether to hide the potion effects
#  hide_dye               (true/false) Whether to hide the leather armor dye attributes
menu:
  # Title of the menu
  # Available placeholders: %board%, %refreshFrequency%, %currentPage%, %maxPages%
  title: "%board%: %refreshFrequency% (Page %currentPage%/%maxPages%)"
  rows: 6
  # Number of leaderboard players there can be at most in the menu
  max_entries: 100
  # If set to true, a menu will always
  # open even when there are no players to display
  open_when_empty: false
  custom_item:
    material: EMERALD
    slot: 4
    display_name: "<!i><#C92745><b>Leaderboards"
    lore:
      - "<!i><white>These are the top"
      - "<!i><white>players on ranking!"
  leaderboard_player:
    # Available internal placeholders:
    #  %position%                 Position in the leaderboard
    #  %playerName%               Name of the player in the leaderboard
    #  %score%                    Score format: 19288.0
    #  %scorePretty%              Score format: 19288
    #  %scoreFormatted%           Score format: 19,29k
    #  %scoreFormattedSeconds%    Converts the score (in seconds) into formatted years, months, days, hours, minutes and seconds
    #  %scoreFormattedMinutes%    Converts the score (in minutes) into formatted years, months, days, hours, minutes and seconds
    #  %scoreFormattedHours%      Converts the score (in hours) into formatted years, months, days, hours, minutes and seconds
    #  %scoreFormattedDays%       Converts the score (in days) into formatted years, months, days, hours, minutes and seconds
    #  %type%                     Score type (see boards section)
    #  %scorePrefix%              Score prefix (see boards section)
    #  %scoreSuffix%              Score suffix (see boards section)
    display_name: "<!i><#F3E9D0>#<b>%position%</b> <#ECC149>%playerName% <#6D6D6D>â€ĸ <#569cd6>%scorePrefix%%scoreFormatted%%scoreSuffix%"
  items:
    close:
      material: BARRIER
      display_name: <#c93434><!i>Close
      slot: 49
      click_commands:
#        - "[player]" # Command executed by the clicker
#        - "[console]" # Command executed by the console
#        - "[message]" # Message sent to the clicker
#        - "[sound] <key> [volume] [pitch]" # Sound played to the clicker: https://www.digminecraft.com/lists/sound_list_pc.php
#        - "[close]" # Close menu
        - "[sound] ui.button.click"
        - "[close]"
    previous_page:
      material: ARROW
      display_name: <#e5c07b><!i>Previous page
      slot: 48
      click_commands:
        - "[sound] ui.button.click"
        - "[previous]"
      fallback:
        material: GRAY_STAINED_GLASS_PANE
        display_name: <gray>
    next_page:
      material: ARROW
      display_name: <#e5c07b><!i>Next page
      slot: 50
      click_commands:
        - "[sound] ui.button.click"
        - "[next]"
      fallback:
        material: GRAY_STAINED_GLASS_PANE
        display_name: <gray>
    black_filler:
      material: BLACK_STAINED_GLASS_PANE
      display_name: <gray>
      slots:
        - 0
        - 8
        - 9
        - 17
        - 18
        - 26
        - 27
        - 35
        - 36
        - 44
        - 45
        - 53
    gray_filler:
      material: GRAY_STAINED_GLASS_PANE
      display_name: <gray>
      slots:
        - 1
        - 2
        - 3
        - 5
        - 6
        - 7
        - 46
        - 47
        - 51
        - 52

Last updated