Minecraft wiki entry for Death_messages, associated text: <player> tried to swim in lava
Appears when the player is killed because they were in lava.
<player> tried to swim in lava to escape <player/mob>
Appears when the player is hurt by a player or mob then entered lava.