Bukkit/CraftBukkit — pull request #1274 by fragtastic (2013-12-03 05:32:34+00:00)
Title: PlayerRespawnEvent fires before player is reset. Fixes BUKKIT-5018

Moved resetting player to before event is fired.
Allows for methods such as but not limited to
setFoodLevel, setExhaustion, and setHealth
to effect player properly after respawning.

Calling teleport on PlayerRespawnEvent still
has player location overwritten.