Solved Help Recipe+Color+Displayname

Discussion in 'Plugin Development' started by noraver, Mar 30, 2013.

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

    noraver

    Hello trying to make a recipe plugin with display name and color added to it


    example of what i have so far
    Code:
       
    public void onEnable() {
       addRecipies();
     }
     
     private void addRecipies() {
           ItemStack is = new ItemStack(Material.LEATHER_HELMET, 1);
           LeatherArmorMeta im = (LeatherArmorMeta)is.getItemMeta();
           im.setDisplayName("White Helm");
           im.setColor(Color.WHITE);
           is.setItemMeta(im);
    put up solved code ^^

    Thanks for the help Zarius =)
     
  2. Offline

    kreashenz

    Is this in an event, if so, make sure you have @EventHandler on the top, and register the event in the onEnable?
     
Thread Status:
Not open for further replies.

Share This Page