As per usual, include server type and version.
I recommend taking a look at config.lua. At least in version 1.1 there is a variable, "deathLosePercent," which if set to 0 will cause no exp loss. If this doesn't help and your server was edited before compilation, take a look at Player::death in...