Ability to access and modify the OfflinePlayer inventory
Scheduled awards. Asynchronous item manipulation. Late transactions. Dozens of reasons; XenForo trophy system provides some nice example usages.
Edit NBT directly? It is not even documented...
Amusingly enough OfflinePlayer currently doesn't even give you access to the NBT at all, so you couldn't do that anyway. I'm gunning to get rid of all the "API"ish NBT in the core for future releases, so we don't want users doing that.
The internal architecture of inventories is too complicated to permit this currently (due to cyclic dependencies between inventory and its holder).
Most helpful comment
Amusingly enough
OfflinePlayercurrently doesn't even give you access to the NBT at all, so you couldn't do that anyway. I'm gunning to get rid of all the "API"ish NBT in the core for future releases, so we don't want users doing that.The internal architecture of inventories is too complicated to permit this currently (due to cyclic dependencies between inventory and its holder).