spigot Throw item code example
Example 1: spigot item break
@EventHandler
public void ItemBreak(PlayerItemBreakEvent e){
e.getPlayer().getInventory().addItem(e.getBrokenItem());
}
Example 2: spigot item break
ItemStack defaultBow = new ItemStack(Material.BOW);
defaultBow.getItemMeta().setUnbreakable(true);