Give colored armor

Discussion in 'Plugin Development' started by sirbikesalot, Jul 31, 2019.

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

    sirbikesalot

    How would I give leather armor that has a specific color? This is what I have so far:


    Code:
    if (slot == 11) {
                    if(player.getInventory().contains(Material.IRON_INGOT, 5)) {
                        player.getInventory().removeItem(new ItemStack(Material.IRON_INGOT, 5));
                        player.getInventory().setHelmet(new ItemStack(Material.LEATHER_HELMET));
                    }
                    else {
                        player.sendMessage(ChatColor.RED + "You do not have enough iron for this!");
                    }
                }
     
  2. Online

    KarimAKL

Thread Status:
Not open for further replies.

Share This Page