Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds placeholders for phase block listing #385 #386

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

tastybento
Copy link
Member

@tastybento tastybento commented Apr 17, 2024

Adds two new placeholders that list the names of the blocks that can occur in the phase. One placeholder is for the user's island and the other is for the visited island.

  • %aoneblock_my_island_phase_block_list%
  • %aoneblock_visited_island_phase_block_list%

The names are prettified versions of the Bukkit Material, or the name given by the LangUtils plugin, which can hook into BentoBox.

Format of the output can be customized in the locale file in the placeholders section:

 placeholders:
     infinite: Infinite
     block-list-format: |
       &7- &e [name]

The default produces a (long) list of materials with one on each line, as requested by the author of #385. Alternatively, they can be put onto a single line like this:

  placeholders:
    infinite: Infinite
    block-list-format: '&e [name],'

The tailing comma will be removed from the list automatically.

@tastybento tastybento linked an issue Apr 17, 2024 that may be closed by this pull request
2 tasks
Copy link

sonarcloud bot commented Apr 17, 2024

@tastybento tastybento merged commit f4c344a into develop Apr 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A new placeholder that will list each block contained in a phase.
1 participant