Try casting to CraftPlayer, not EntityPlayer