set an item to be unbreakable spigot code example
Example: spigot make item unbreakable
ItemStack item = new ItemStack(Material.DIAMOND_CHESTPLATE);;
item.setDurability((short) -1);
ItemStack item = new ItemStack(Material.DIAMOND_CHESTPLATE);;
item.setDurability((short) -1);