Item rename plugin

Discussion in 'Spigot Plugin Development' started by sidboy55555, Jun 29, 2015.

  1. Hi, is there a item rename plugin that renames the item even if someone craft its that it automatically
    changes to the name what was set?
  2. I am sure you can find one, or if you have any experience with Java and the Spigot API, it would be pretty straightforward to create.
  3. i'm not good with programming, once did it with the creator of multiworld, but i didn't get it through,
    I can ask ferrybig but he's really bussy so maybe you can make quick a code for me?
  4. Code (Text):
    public void onPlayerCraft(PrepareItemCraftEvent event)
      ItemStack output = event.getRecipe().getResult();
      if(output is what you want)
        ItemMeta im = output.getItemMeta();
    This is some lil code I wrote just from head, add some error checking and actually that's all.