Skip to main content

TavernManager

A class in TavernLib, TavernLib.Backend.Api.

The server's config files, registered as a service: get it with TavernServices.GetService<TavernManager>(). Server only, also with /launcherauth.

Constructors​

MemberWhat it is
TavernManager()Creates and reads the config files, then starts the listing controller and auth manager when they are on.

Properties​

MemberWhat it is
ServerSettingsConfig ServerConfig { get; private set; }server_settings.json.
TavernServerConfig TavernConfig { get; private set; }tavern_server.json, the ports.
UserConfigFile UserConfig { get; private set; }users.json. Change it through Update on this object, which is the one TavernLib writes through.
WhitelistRequestsConfigFile WhitelistRequests { get; private set; }whitelist_requests.json.
2 private and internal properties
MemberWhat it is
internal AuthManager AuthManager { get; private set; }Internal: the login server on the auth port. null with /launcherauth.
internal ServerListingController ListingController { get; private set; }Internal: the Community Servers heartbeat. null unless community_listed was on at start.

Methods​

1 private and internal method
MemberWhat it is
private static void TryRead(Action read, string path)Runs a config read and logs an error instead of throwing if it fails.

Used in​

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