Remove Disc Lore

Discussion in 'Plugin Requests' started by ketchupcoke, Nov 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    ketchupcoke

    Hey, I would like to remove the "lore" (not really lore) on music discs - for example "C418 - cat". This way I can use the discs as free textures for my server, without having to use items the player can obtain.

    After looking into it, I found this:

    ItemStack i = new ItemStack(Material.DISKTHINGNY);
    ItemMeta m = i.getItemMeta();
    m.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
    i.setItemMeta(m);

    I believe the plugin will require ProtocolLib to work.

    Thanks :)
     
  2. I'm pretty sure Hide-Attributes just hides all the NBT info on an item (examples: "NBT Tags: 5", Can Break/Place lists, enchantments). Try giving yourself one of these discs via mcstacker and check if it works. If it doesn't work, then it won't be something that Bukkit can accomplish.
     
Thread Status:
Not open for further replies.

Share This Page