Bukkit/CraftBukkit — pull request #1402 by Maximvdw (2014-07-29 23:19:54+00:00)
Title: Only fetch an online UUID in online mode

The previous code would get an online UUID even in offline mode what
breaks plugins if the player joins.

Example:
You want to store data for player "Test" who never joined. An online UUID is created and you save it using that UUID.

The player Test joins with an offline UUID but that will not match the online UUID of the saved data.