So... I made a plugin that adds a rarity sistem to items but I don't know how to modify their name depending on the lang I choose, in this case "es_ES", so "Dirt" will be "Tierra" (This will not depend on player's lang, it will always be spanish). Also, this is for 1.14.4, I have searched and found some language APIs but for 1.12 or less.
Oh... Thanks (I think I should take a better look to the API) Edit: meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', "&7"+meta.getLocalizedName())); Is this normal?
Ok so the problem is that the item doesn't have a localized name... How can I make it to have spanish localized name?
Inside your spigot jar, there is a lang yaml file. You need to open it, select everything and delete everything. Once that is done, you will need to find your client lang file in the language you want and open it with a text editor. Now select everything and copy/paste it to the lang server file. Save and restart the server. It should work and now your server is gonna be in full es_ES (if chosen)