if (InventoryScriptHelper.notableInventories.containsKey(inventory.getTitle()))
return InventoryScriptHelper.notableInventories.get(inventory.getTitle());
// Iterate through offline player inventories
for (Map.Entry<UUID, PlayerInventory> inv : InventoryScriptHelper.offlineInventories.entrySet()) {
if (((CraftInventory) inv.getValue()).getInventory().equals(((CraftInventory) inventory).getInventory()))
return new dInventory(new ImprovedOfflinePlayer(inv.getKey()));
}
return new dInventory(inventory);
}