Does it restart everything?
Like lose items, skills too? Back to Level one?
Or just your level, if it just your level it is in MYSQL/config deathloss exp, and stuff.
If you are losing everything, and going back down to one, get a new playerdeath.lua, and make sure your mysql has save triggers.