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

Custom Inventory Title does not work for Anvil

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Invalid
    • None
    • None
    • Windows 10 64bit

      Java 1.8.0_141

    Description

      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);
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: