Why doesnt work code?

Discussion in 'Plugin Development' started by SondikCZ, Feb 4, 2017.

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

    SondikCZ

    if (!e.getInventory().getName().equalsIgnoreCase(ChatColor.GREEN + "MENU") || e.getCurrentItem().getType() == Material.AIR || e.getCurrentItem() == null <--- null doesnt work why ?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @SondikCZ Should be the second check, not the third
     
Thread Status:
Not open for further replies.

Share This Page