Skip to main content

PlayerCommandModule.InventoryModule

A static class in TavernLib, TavernLib.ModulePorts.

The player inventory submodule: view an online player's inventory, and save or load it. Server only; its commands are private.

Methods​

3 private and internal methods
MemberWhat it is
private static IEnumerable<Inventory> Inventory(PlayerList players) (iterator)player inventory: server only, shows online players' inventories.
private static async Task Load(UserInfoAccess user, string save)player inventory load: server only, writes inventory data into an offline player's save.
private static async Task<string> Save(UserInfoAccess user)player inventory save: server only, returns a player's inventory data as text, from the live player or from their save file.