Get no more damage in Minecraft?

Bo
6

I have been playing Mc with my friends for 2 hours and suddenly I get no more damage, what have I done?

la

Can it be that you are in creative mode?

Bo

No i'm not, i'm once rejoint and now suddenly nobody can hit me etc

Oc

Server was?

Bo

Have already restaret and everything

Oc

Then I don't know

la

It may be that your friend has taken away your rights