getLocalizedName() always returns null

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      This server is running CraftBukkit version git-Spigot-5695bca-53fccdf (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)

      ItemStack is = player.getInventory().getItemInMainHand();
      System.out.println("output= " + is.getItemMeta().getLocalizedName());
      

      Initial commit of this method here.

      Tested with Apple, String, Dirt using English (US), Spanish (Mexico), Korean.

      From what I understand, is.getItemMeta().getLocalizedName() should return the localized/translated name of a given item (such as "Terra" instead of "Dirt" for Spanish (Mexico) users. Instead the output is always "output= null".

            Assignee:
            Unassigned
            Reporter:
            PikaMug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: