Skip to content

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

Description

@Noogear

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions