Break przedmiotu Spigoot
@EventHandler
public void ItemBreak(PlayerItemBreakEvent e){
e.getPlayer().getInventory().addItem(e.getBrokenItem());
}
JulesG10
@EventHandler
public void ItemBreak(PlayerItemBreakEvent e){
e.getPlayer().getInventory().addItem(e.getBrokenItem());
}
ItemStack defaultBow = new ItemStack(Material.BOW);
defaultBow.getItemMeta().setUnbreakable(true);