Bukkit/Bukkit — pull request #986 by Renlar (2013-12-08 17:49:58+00:00)
Title: [B+C]Adds the ability to look up online players by UUID. Adds BUKKIT-5071

The Issue:
With the move to UUIDs as the static player identification method it is necessary for any plugin which uses persistent player data to keep track of players by their UUID instead of their username. Currently looking up a player by their UUID requires the plugin to get the list of online players then test the UUID it is looking for against every player.

Justification for this PR:
* Allows online player lookup by UUID in the same manner as lookup by name, keeping the api consistent.

Previously:
* Player getPlayer(String name); was the only way to get a single Player.

Now:
* Player getPlayer(String name); can still be used by plugins which do not need to persist data or protect against name changes.
* Server.getPlayer(String name); allows plugins which use player UUIDs to get players directly. This will mostly be use by plugins which persist player data.

PR Breakdown:
* Adds the method, Player getPlayer(UUID uuid); to org.bukkit.craftbukkit.CraftServer

Testing Results and Materials:
See CraftBukkit PR.

Results test plugin successfully looks up player by UUID and prints player name and player UUID to console.
* My Mojang UUID is ff01f784ab524b2baf2401052415320f
* The UUID returned by the test plugin using the added method is ff01f784ab524b2baf2401052415320f

Relevant PR(s):
* B-1288 - https://github.com/Bukkit/Bukkit/pull/1288 - API addition

JIRA Ticket:
* BUKKIT-5071 - https://bukkit.atlassian.net/browse/BUKKIT-5071