Check if player has item in inventory not working..

Discussion in 'Spigot Plugin Development' started by redstonebiten, Jun 18, 2016.

Thread Status:
Not open for further replies.
  1. I actually don't know why this doesn't work ;_;
    Code (Text):
                                            for(ItemStack item:player.getInventory().getContents()){
                                            if(item !=null){
                                            if(item == new ItemStack(Material.STONE,1)){
     
Thread Status:
Not open for further replies.