check if(event.getCurrentItem()) is an item?

Discussion in 'Spigot Plugin Development' started by kinukin, Jun 9, 2017.

  1. How can I check if event.getCurrentItem is an item?
     
  2. evnt.getCUrrentItem().type() == Material.<MATERIAL>
     
  3. event.getCurrentItem().getType() == Material.<Material>
     
  4. ty for spoonfeed
     
    • Agree Agree x 1