Dyed leather Armour - is it possable

Discussion in 'Plugin Development' started by ahuby09, Apr 10, 2014.

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

    ahuby09

    is it possible put on the player dyed leather Armour heres what i have got
    Code:
     
     player.sendMessage("You have been added to team blue");
    player.getInventory().setHelmet(new ItemStack(Material.WOOL, 1, (short) 9));
    player.getInventory().setBoots(new ItemStack(Material.LEATHER_BOOTS, 1));
    player.getInventory().setLeggings(new ItemStack(Material.LEATHER_LEGGINGS, 1, (short) 3));
    player.getInventory().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE));
     
    
     
  2. Offline

    Maurdekye

    ahuby09 You have to get the ItemMeta of the leather armor, cast it to LeatherArmorMeta, and then set the armor color.
     
  3. Offline

    ahuby09

    and i would do that how (have you got a video tutorial of it or code and explain it to me cause i haven't done anything like that before
     
  4. Offline

    Garris0n

    Look at the JavaDocs.
     
  5. Offline

    ahuby09

    ok which one doxygen or the other one
     
  6. Offline

    Garris0n

    It doesn't matter.
     
  7. Offline

    GeorgeeeHD

    LeatherArmorMeta
     
  8. Offline

    Garris0n

    First of all, paste without formatting.
    Second, what do you mean "now what". Use it.
     
  9. Offline

    ahuby09

    Code:
    LeatherArmorMeta meta = (LeatherArmourMeta) helmet.getItemMeta
    this is what ive found now what do i do :3
     
Thread Status:
Not open for further replies.

Share This Page