Solved Getting item meta from player hand

Discussion in 'Spigot Plugin Development' started by JacksonHogan, May 28, 2016.

Thread Status:
Not open for further replies.
  1. I'm trying to use this line of code to check if the item lore equals something... Its not working. (I get an NPE on this line).
    Code (Text):
    if(e.getItem().getItemMeta().getLore().contains("Speed I")){
     
  2. Well that means something in this line is null. Figure out what is by splitting out the line and fix it from there.
     
  3. Never mind :D I fixed it.
     
Thread Status:
Not open for further replies.