Well , guys i have a question in my mind for some time which is How do you give items to players that only you can craft as a plugin for detecting later for ex "i can't detect by name because they can rename items , I can't detect by lore aswell same goes for enchantments and displayname" so I am asking is there a special meta that we can add to make items uniique for our plugin like giving em a custom id .. or do we have to use items uuid to make it unique from all the other items
Well, how can you change the lore of an item? This is only possible with creative mod + hacked client I guess. However you can use NBTTags, there's a library out there, but it's a hacky way and may changed also with creative, I don't know. It's also possible with ProtocolLib to hide a lore (f.e. if it contains an uuid)
mine-care ItemStack does not implement Metadatable unfortunately :/ Zupsub is right, you can't change the lore of an item, even with creative/hacked client. I'd go with hiding a lore with ProtocolLib
Totom3 Zupsub Guys... Code:java ItemMeta im = YourItemStack.getItemMeta();List<String> lore = new List<String>();lore.add("Line 1");lore.add(ChatColor.GREEN + "Line 2");im.setLore(lore);YourItemStack.setItemMeta(im); Make a list of a string of lore lines.. and Get the item meta and add the list to it.
ChipDev Ahaha go home, you're drunk (or lost (or both)) When we were saying you couldn't change the lore... we meant as a player on a server without the help of third party plugins xD