Answers for "check if item lore is something bukkit"

0

check if item lore is something bukkit

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");
 
        }
Posted by: Guest on December-10-2020

Code answers related to "check if item lore is something bukkit"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language