So I was in all my diamond gear being chased down ( like usual ) and I finally found a safe spot. I waited until the "It is safe to log off" message appeared and when it did the guy was right there. I logged KNOWING It was safe. I got back on expecting to be at spawn and there I was... dead where I logged. I read the chat and no where did it say I got tagged! I lost all my stuff when I shouldn't have. He couldn't have hit me last minute. It would have said I got tagged. Note: I just am asking if what I think happened happened. Im not asking for anyone to fix it or the goet my items back.
The most likely explanation is that you logged off, but due to latency you were still logged in server-side causing you to get hit by the player.