āš™ļøConfiguration

The configurations are found at .../plugins/LeaderboardMenus/

āš™ļø Default config.yml

# This plugin utilizes bStats which collects anonymous data (https://bstats.org)
# You can find statistics about this plugin at https://bstats.org/plugin/bukkit/LeaderboardMenus/20242
# If you wish to disable data collection, change "enabled: true" to "enabled: false" in .../plugins/bStats/config.yml
# Plugin documentation: https://docs.aeonxd.xyz/plugins/leaderboardmenus
# Config version, do NOT edit
config-version: "1.7.0"

# Don't have a key yet? Get one @ https://discord.aeonxd.xyz
license-key: "PUT-YOUR-LICENSE-KEY-HERE"

# Supported plugins to hook into:
# - AJLEADERBOARDS
# - TOPPER
leaderboard_plugin: AJLEADERBOARDS

settings:
  update:
    # Disable if you don't want to check for updates
    check_updates: true
    # How often to check for updates (in hours)
    # Default: 24
    check_interval: 24
  # The time interval in seconds used to refresh cached entries
  # Default: 60
  cache_refresh_interval: 60
  # Loads entries directly after the server starts to improve overall performance
  # Caution: enabling this might increase server loading time
  load_entire_cache_on_enable: true

leaderboard_name_beautifier:
  settings:
    enabled: true
    # true/false - Whether to capitalize after applying replacers
    # For example: "players killed" -> "Players Killed"
    capitalize_result_equals: false
    capitalize_result_contains: true
  replacers:
    # For these replacers to work, the board name must equal the matcher (case-sensitive)
    equals:
      # Name of the replacer
      walk:
        # What to match the board name with
        matcher: "statistic_walk_one_cm"
        # What to replace the matcher with
        replacement: "Cm walked"
      playtime:
        matcher: "statistic_minutes_played"
        replacement: "Playtime"
      balance:
        matcher: "vault_eco_balance"
        replacement: "Money"
    # For these replacers to work, the board name must contain the matcher
    contains:
      statistic:
        matcher: "statistic_"
        replacement: ""
      underscore:
        matcher: "_"
        replacement: " "
      colon:
        matcher: ":"
        replacement: ": "
        cut: true
        # This replacer section will only get applied if the "colon" replacement was successful
        # You can have as many nested if_match sections as you want
        if_match:
          comma:
            matcher: ","
            # Allows you to cut the board name until the matcher
            # For example: "kill_entity:ender_dragon,wither,warden,elder_guardian" -> "kill_entity:ender_dragon,"
            cut: true
            replacement: "..."

# Per-board options:
#  alias                Alias command to directly open menu (Note: server restart is needed to (un)register alias commands)
#  type                 Type of score (%type%)
#  score_prefix         Score prefix (%scorePrefix%)
#  score_suffix         Score prefix (%scoreSuffix%)
#  custom_item          Overrides the custom item from the menu section
#  leaderboard_player   Overrides the leaderboard player item from the menu section
boards:
  player_level:
    alias: "/toplevels"
    type: "Level"
    score_prefix: ""
    score_suffix: " levels"
  vault_eco_balance:
    alias: "/baltop"
    score_prefix: "$"
  statistic_minutes_played:
    alias: "/playtime"
    custom_item:
      material: CLOCK
      slot: 4
      display_name: "<#C92745><b>Playtime ranking"
      lore:
        - "<white>See who has played the"
        - "<white>most on the server"
    leaderboard_player:
      display_name: "<#F3E9D0>#<b>%position%</b> <#ECC149>%playerName%"
      lore:
        - " <#6D6D6D>ā€ŗ <#569cd6>%scoreFormattedMinutes% "
      click_commands:
        - "[message] <#C92745><b>LeaderboardMenus</b> <#6D6D6D>ā€¢ <#ECC149>%playerName% <white>has played on the server for <#569cd6>%scoreFormattedMinutes%"

# 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
#
# Item Flags:
#  item_flags:
#  - 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
#  Alternatively:
#   hide_X: true/false
#
# Want to parse PlaceholderAPI placeholders before local ones?
#  Use "parse_papi_before_local: true". Works everywhere!
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:
    enabled: true
    material: EMERALD
    slot: 4
    display_name: "<#C92745><b>Leaderboards"
    lore:
      - "<white>These are the top"
      - "<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
    #  %scoreFormattedUppercase%  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: "<#F3E9D0>#<b>%position%</b> <#ECC149>%playerName% <#6D6D6D>ā€¢ <#569cd6>%scorePrefix%%scoreFormatted%%scoreSuffix%"
  items:
    close:
      material: BARRIER
      display_name: <#c93434>Close
      slot: 49
      click_commands:
      #  - "[player]" # Command executed by the clicker
      #  - "[console]" # Command executed by the console
      #  - "[chat]" # Message sent by the clicker
      #  - "[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>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>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

# These are shown in the menu title with the %refreshFrequency% placeholder
# and in the chat message user.showing-leaderboard
refresh_frequencies:
  alltime: "alltime"
  hourly: "hourly"
  daily: "daily"
  weekly: "weekly"
  monthly: "monthly"
  yearly: "yearly"

time_units:
  years: "y "
  months: "mo "
  days: "d "
  hours: "h "
  minutes: "m "
  seconds: "s"

number_formatter:
  settings:
    # For example: "1.234"
    # Number: one point 234
    decimal_separator: '.'
    # For example: "1,234.56"
    # Number: one thousand two hundred thirty-four point 56
    grouping_separator: ','
    # Minimum number of fractions after the decimal separator
    # Input: 1
    # Output: 1
    min_fraction_digits: 0
    # Maximum fractions after the decimal separator
    # Input: 1.2345
    # Output: 1.23
    max_fraction_digits: 2
  # You can add your own thresholds up to 1.7976931348623157e308
  thresholds:
    thousand:
      threshold: 1000.0
      lowercase: "k"
      uppercase: "K"
    million:
      threshold: 1000000.0
      lowercase: "m"
      uppercase: "M"
    billion:
      threshold: 1e9
      lowercase: "b"
      uppercase: "B"
    trillion:
      threshold: 1e12
      lowercase: "t"
      uppercase: "T"
    quadrillion:
      threshold: 1e15
      lowercase: "qa"
      uppercase: "Qa"
    quintillion:
      threshold: 1e18
      lowercase: "qi"
      uppercase: "Qi"
    sextillion:
      threshold: 1e21
      lowercase: "sx"
      uppercase: "Sx"
    septillion:
      threshold: 1e24
      lowercase: "sp"
      uppercase: "Sp"
    octillion:
      threshold: 1e27
      lowercase: "oc"
      uppercase: "Oc"
    nonillion:
      threshold: 1e30
      lowercase: "no"
      uppercase: "No"
    decillion:
      threshold: 1e33
      lowercase: "dc"
      uppercase: "Dc"

āš™ļø Default messages.yml

# Config version, do NOT edit
config-version: "1.6.2"

prefix: "<#C92745><b>LeaderboardMenus</b> <#6D6D6D>ā€¢"

general:
  update-available: "%prefix% <gray>There's a new update available!<newline><#6D6D6D>(<#ffbf00>%oldVersion% <gray>ā†’ <#C5FF78>%newVersion%<#6D6D6D>) <click:open_url:'https://builtbybit.com/r/35088/updates'><#6D6D6D>[<#F3E9D0><hover:show_text:'<gray>Click to download'>BuiltByBit</hover><#6D6D6D>]</click> <click:open_url:'https://polymart.org/r/5058/updates'><#6D6D6D>[<#F3E9D0><hover:show_text:'<gray>Click to download'>Polymart</hover><#6D6D6D>]</click>"
  no-update-available: "%prefix% <gray>There are no new updates available"
  #  %subcommand%       The subcommand used
  subcommand-does-not-exist: "%prefix% <gray>The subcommand <#F3E9D0>%subcommand% <gray>does not exist"
  not-a-player: "%prefix% <gray>You must be a player to execute this command"
  no-permission: "%prefix% <gray>You don't have sufficient permissions to execute this command"
  command-usage:
    - ""
    - " %prefix% <gray>Command help"
    - "  <#6D6D6D>ā€ŗā€ŗ <#F3E9D0>/%command% %subcommand+args%"
    - "  <#6D6D6D>ā€ŗā€ŗ <gray>%subcommandDescription%"
    - ""

user:
  #  %board%            Leaderboard name
  board-does-not-exist: "%prefix% <gray>The leaderboard <#F3E9D0>%board% <gray>does not exist"
  #  %boardBeautified%  Beautified leaderboard name
  leaderboard-empty: "%prefix% <gray>The <#F3E9D0>%refreshFrequency% <gray>leaderboard <#F3E9D0>%boardBeautified% <gray>is empty"
  showing-leaderboard: "%prefix% <gray>Showing <#F3E9D0>%refreshFrequency% <gray>leaderboard <#F3E9D0>%boardBeautified%"
  help-layout:
    header:
      - ""
      - "%prefix% <gray>Displaying available commands..."
    #  %subcommandDescription%    Command description
    body:
      - "  <#F3E9D0>/%command% %subcommand+args% <#6D6D6D>ā€¢ <gray>%subcommandDescription% "
    footer:
      - ""

admin:
  successfully-reloaded: "%prefix% <gray>Successfully reloaded the configuration files"
  target-does-not-exist: "%prefix% <gray>Player <#F3E9D0>%target% <gray>not found"
  help-layout:
    header:
      - ""
      - "%prefix% <gray>Displaying available commands..."
    #  %subcommandDescription%    Command description
    body:
      - "  <#F3E9D0>/%command% %subcommand+args% <#6D6D6D>ā€¢ <gray>%subcommandDescription% "
    footer:
      - ""

Last updated