๐ฑ Inventories
Root commands: /inventory, /invsee, /cmi inv, /playerdata
Worlds: Spawn, Overworld, Underworld-A, Underworld-B, Pit
Access Level: Admin
When accessing the inventory of a player, the proper command to use depends if the player is online or offline. Any time you need to access the inventory of a player, always use /find <player> to confirm whether they are online or offline (and if online, what server they are on).
Accessing Player Inventory (Online)
Two commands work for accessing inventories while online:
/invsee <name>/cmi inv <name>
/invsee will only let you see their 36 inventory slots (no armour/offhand), but is easier to use. /cmi inv lets you see their entire inventory, but can be annoying in some cases (e.g. you can't shift-click items out, or copy them without first moving them to your inventory)
Prefer the /invsee command when you don't need to access the player's offhand or armour.
Accessing Player Inventory (Offline)
/inventory <name>
Do not use this command if the player is online, it will likely cause item loss or duplication. Check if they are online in any world with /find playername - you should receive a That user is not online message.
Accessing Player Inventory Saves
Inventories are periodically saved in PlayerData. They can be useful to reference if you want to see a player's inventory at a given point in time, for instance when tracking down a lost/bugged item. However, there is no guarantee that a save occurred at a specific point in time, so do not rely on this to always provide you with what you need.
To access a player's data saves, simply use the command /playerdata list <player>. From there, you can click on a specific player data save, which opens a new menu. You can then click on the inventory button to view the inventory of the player at the data save.