What do you do with a friend that keeps hurting you?

You should tell him/her that they're hurting you, and if they still do it, write them a letter, and say your upsset about it.