[SPIGOT-4022] Item.getName() returns the same as item.getUniqueId() Created: 16/Jul/18  Updated: 16/Jul/18  Resolved: 16/Jul/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Gerhard Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: bug, entity, spigot
Environment:

java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
:/home/container$ java -Xms128M -Xmx2000M -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -jar server.jar
 


Version: CraftBukkit version git-Spigot-6505f06-b8ea9ec (MC: 1.13-pre7) (Implementing API version 1.13-pre7-R0.1-SNAPSHOT)

 Description   

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());
    } ...


 Comments   
Comment by md_5 [ 16/Jul/18 ]

Please follow the bug reporting instructions next time

Comment by md_5 [ 16/Jul/18 ]

And what did you expect?
Please follow the bug reporting instructions.

Generated at Tue Mar 18 20:46:02 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.