Bukkit/Bukkit — pull request #629 by jrtc27 (2012-07-01 18:35:01+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 CraftBukkit Pull Request: https://github.com/Bukkit/CraftBukkit/pull/811
JIRA Ticket: https://bukkit.atlassian.net/browse/BUKKIT-1877