SpigotMC/BungeeCord — pull request #964 by iKeirNez (2014-04-09 19:28:21+00:00)
Title: Add method to get a connected player via their UUID

I added a helper method to get a player via their UUID.

Since we don't have a map with UUID as the key and player as the value, I had to loop through the values of the existing map. Maybe in the future it could be changed so that the UUID is the key and instead we loop through for the name as UUIDs will probably be getting used more instead of the player name.

I'm not sure if the read locks are needed, let me know if I should remove them.