Skip to main content

UserConfig

A class in TavernLib, TavernLib.Backend.Server.Configs.

The contents of users.json: registered players, and the whitelist and blacklist. Unknown keys are kept and written back.

Constructors​

MemberWhat it is
UserConfig()Created by TavernLib; mods don't make one.

Properties​

MemberWhat it is
UserConfig.ListConfig Blacklist { get; set; }Names, ids and addresses that may never join.
Dictionary<string, UserConfig.User> Users { get; set; }Registered players by lower-case username.
UserConfig.ListConfig Whitelist { get; set; }Names, ids and addresses allowed in while the whitelist is on.
1 private and internal property
MemberWhat it is
private IDictionary<string, JToken> Extra { get; set; }Holds JSON keys TavernLib doesn't model, so they are written back unchanged.

Used in​

Members of other types that take, return or hold a UserConfig: