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

Item.getName() returns the same as item.getUniqueId()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version git-Spigot-6505f06-b8ea9ec (MC: 1.13-pre7) (Implementing API version 1.13-pre7-R0.1-SNAPSHOT)

      This both yields the same result. (which is the UUID)

      import org.bukkit.entity.Item;
      import org.bukkit.event.entity.EntityPickupItemEvent;
      
      @EventHandler
      public void onEntityPickupItemEvent(EntityPickupItemEvent event) {
          try {
              Item item = event.getItem();
              System.out.println(item.getName());
              System.out.println(item.getUniqueId());
          } ...
      

            Unassigned Unassigned
            valicious15 Gerhard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: