I have to disagree with that. Storing your treasures in Heaven and not on earth is referring to not buying luxury things that we don't need and give the money to the poor instead. He didn't specify greedy rich people, He only said rich people in general.
This is why there are so many different religions and beliefs.