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

Use gettranslationkey() to translate block/material/entity ‘s name #2565

Open
2 tasks done
Noogear opened this issue Nov 29, 2024 · 1 comment
Open
2 tasks done
Assignees

Comments

@Noogear
Copy link
Contributor

Noogear commented Nov 29, 2024

Is your feature request related to a problem?

https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Translatable.html#getTranslationKey()

After version 1.19.3, the Bukkit API introduced getTranslationKey to achieve translation of names based on the client. Since the update of BentoBox to version 3.0, which only supports versions above 1.21.3, this method can be introduced to translate the names of materials and creatures. It can be used in addons like challenge and biome.

Describe the solution you'd like.

image

Describe alternatives you've considered.

Using this method can abandon the original built-in material name matching function

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported BentoBox build or Addons.

Other

No response

@tastybento tastybento self-assigned this Dec 5, 2024
@tastybento
Copy link
Member

Sounds good. I'll study it.

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

No branches or pull requests

2 participants