📜  检查项目知识是否是 bukkit - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:18.344000             🧑  作者: Mango

代码示例1
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");
 
        }