Steps to reproduce:
battle a wild Pokémon while the config setting "allowVanillaMobs" is true (or just spam a bunch of zombie spawn eggs beforehand)
win the battle at night (optional if you did the above parenthesis)
get swarmed by zombies while deciding whether or not to learn a move, let a Pokémon evolve, etc.?
????
Profit!
While dying may not be too much of a problem in and of itself (depending on settings like keepinventory and the presence of commands like /back), it does present a problem if one of your Pokémon was about to learn a move, evolve, or something else of that nature. Pretty sure, for instance, that my Arbok (which took long enough evolving from an Ekans for me to get killed) missed out on a move at the same time that I was discovering this. Fortunately, in this instance, I'm the server admin so I could just give myself a TM if it was enough of an inconvenience, but nonetheless this is probably not intended gameplay.
possibly (but not likely) related to #13099
probably not a duplicate of anything (I checked every report in the 150 search results for "player")