check if item lore is something bukkit

Solutions on MaxInterview for check if item lore is something bukkit by the best coders in the world

showing results for - "check if item lore is something bukkit"
Ewenn
11 Sep 2018
1if(e.getPlayer().getInventory().getItemInHand().getItemMeta().getLore().contains("Wool")) {
2            ItemStack hand = e.getPlayer().getInventory().getItemInHand();
3            ItemMeta meta = hand.getItemMeta();
4            meta.setLore(ChatColor.GREEN + "Thors Hammer");
5 
6        }