# Solved setCustomColor help

Discussion in 'Development' started by mm899, May 14, 2019.

1. ### mm899Spider Jockey

Messages:
32
So I'm trying to set a colour to leather armor...but my IDE keeps saying:
Method 'setCustomeColor' not found in \pocketmine\item\Item

my uses:
PHP:
 use pocketmine\item\Armor;use pocketmine\item\Item;use pocketmine\level\Position;use pocketmine\Player;use pocketmine\Server;use pocketmine\block\Block;use pocketmine\utils\Color;use pocketmine\utils\TextFormat; 
My IDE also says that
PHP:
 use pocketmine\item\Item; 
is never used.

The code:
PHP:
 $boots = Armor::get(Armor::LEATHER_BOOTS);$color = new Color(255, 0, 0);$boots->setCustomColor($color); 

2. ### SavionLegendZzzWitch

Messages:
74
GitHub:
savionlegends
check if \$boots is an instanceof \pocketmine\item\Armor

mm899 likes this.
3. ### mm899Spider Jockey

Messages:
32
I should of had thought of that smh, thanks it worked