📅  最后修改于: 2022-03-11 14:52:11.262000             🧑  作者: Mango
代码示例2
@EventHandler
public void ItemBreak(PlayerItemBreakEvent e){
e.getPlayer().getInventory().addItem(e.getBrokenItem());
}