Bukkit/CraftBukkit — pull request #811 by jrtc27 (2012-07-01 18:34:45+00:00)
Title: Added The Ability To Get An Offline Player's Inventory

As the title says, this pull request adds the ability for a plugin to retrieve the saved inventory of an OfflinePlayer. This would allow moderation plugins to be able to view a player's saved inventory if they are not on the server.

Implementation details:
If the player is online, it returns the player's inventory by getting the online player and then calling `getInventory()` on that object. For other players it gets a player's inventory by loading the NBT file, creating a `net.minecraft.server.PlayerInventory` with the player set to null, calling `b(NBTTagList)` and then creating a `CraftInventoryPlayer` with the inventory already created. Also, if the player has no data, it returns null.

Corresponding Bukkit Pull Request: https://github.com/Bukkit/Bukkit/pull/629
JIRA Ticket: https://bukkit.atlassian.net/browse/BUKKIT-1877