Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3839

getLocalizedName() always returns null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • 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".

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

              Created:
              Updated:
              Resolved: