public org.bukkit.inventory.PlayerInventory getInventory() {
if (InventoryScriptHelper.offlineInventories.containsKey(getUniqueId()))
return InventoryScriptHelper.offlineInventories.get(getUniqueId());
PlayerInventory inventory = new PlayerInventory(null);
inventory.b(this.compound.getList("Inventory", 10));
org.bukkit.inventory.PlayerInventory inv = new CraftInventoryPlayer(inventory);
InventoryScriptHelper.offlineInventories.put(getUniqueId(), inv);
return inv;
}