Solved Getting an items name..

Discussion in 'Plugin Development' started by zakkinu2, Sep 24, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    zakkinu2

    I know What the event is for picking up items and stuff. But the thing is How do you get the name/lore of the item that their trying to pick up??? And if the name/lore is a certain name how can you delete that entity from the floor, but doesnt go in the players inventory either (i know how e.setCancelled(true)) but yeah how do you delete the entity if its a certain name?
     
  2. Offline

    chasechocolate

    Get the ItemMeta: item.getItemMeta().hasDisplayName() && item.getItemMeta().getDisplayName().contains("Something").
     
  3. Offline

    zakkinu2

Thread Status:
Not open for further replies.

Share This Page