Hacked client help - get what other players are holding?
I'm trying to code a hacked client, and I've got the esp box around the players, with a label above saying what their health, armour, and xp is, but I cant seem to get it to say what they're holding. I've tried stuff along the lines of ".getEquippedItem().toString()" but it just crashes the game

. I'm only a beginner at java so please help!
Code if it helps:
Code:
if(Variables.Tracers)
{
RenderGlobal.drawPlayerESP(par2, par4, par6);
renderLivingLabel(par1EntityPlayer, "\247bHP: " + par1EntityPlayer.health + " Armor: " + par1EntityPlayer.inventory.getTotalArmorValue() + " XP: " + par1EntityPlayer.experienceLevel, par2, par4 + (1.0 / 3), par6, 64);
}