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

Custom Inventory Title does not work for Anvil

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • Windows 10 64bit

      Java 1.8.0_141

      When showing a custom inventory to a player, one has the option to specify a custom title for

      that inventory.

      Bukkit.createInventory(<holder>, <size>, <custom name>);
      

      However, when trying to apply this concept to the anvil inventory, the name does not change. It stays as the default "Repair & Name". 

      Inventory anvilInventory = Bukkit.createInventory(player, InventoryType.ANVIL, "My Custom Title!");
      player.openInventory(anvilInventory);
      

            Unassigned Unassigned
            n_graf GitGraf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: