She consistently held to the rule. The kids stopped begging for candy. Consequences are different from punishment. Punishment hurts children. It makes them angry.
Consequences teach children.
They show the child that when she does certain things, certain things will happen. Each of the children has assigned chores. If the children have not finished their chores by the time we sit down for dinner, they may not join us until the chores are finished. If they start to whine, we ask them to go to their rooms until they can get along with the family. Consequences must not be used when a child is in danger.