1.14.4 Entitytype/material enums translation problems

Discussion in 'Spigot Plugin Development' started by Woutzah, Feb 2, 2020.

  1. Hey there,

    I'm currently working on a plugin where i need to get the localized names from the material enum and entitytypes. I'm trying to achieve that E.G stone becomes "pierre" or something else dependig on the server language said plugin is run on.

    I was also thinking about adding a section in the config like: language: 'EN_GB' or something so that the plugin would take the corresponding material/entitytype in said language. Does ayone have experience with this matter? I also tried using sections of the code from localeLib (https://www.spigotmc.org/resources/localelib.65617/) and tried using the queryMaterial" method etc. But nothing seemed to work since it uses "tellraw" and i want to do a player.sendmessage(stringBuilder.tostring) etc.
    I'm breaking my head over this issue for a couple of days now :p Would love to get some help on this matter.

    Thanks for reading,