📅  最后修改于: 2022-03-11 14:52:18.344000             🧑  作者: Mango
if(e.getPlayer().getInventory().getItemInHand().getItemMeta().getLore().contains("Wool")) {
ItemStack hand = e.getPlayer().getInventory().getItemInHand();
ItemMeta meta = hand.getItemMeta();
meta.setLore(ChatColor.GREEN + "Thors Hammer");
}