Could a mod just close this thread?
I'm sure at one point you had questions like this too.
Thanks a lot, your method was simple and to my testing worked very well and accurately. It was so simple I feel so stupid.
I have tried that before and it didn't work in my situation.
I see, your catching the nullpointereception!!
Hello, I was wondering the best way to check for a custom item, the only way I know how is by the Display Name, but that causes errors on items...
NVM, it didn't work, the line of code that is failing is: if(item.getItemMeta().getDisplayName().equals(ChatColor.RED + "ITEMNAME")) {
Check My updated Question, and btw I updated my if statement it still throws the error I uploaded.
Hello, I am getting a NPE (null-pointer exception) when placing any other item than the ones I have defined, or when drinking from a milk-bucket....
Separate names with a comma.