Skip to main content

CommandSecurityPatches

A class in TavernLib, TavernLib.Patches.

Harmony patches on the game's console and API checks: they turn off wrist-menu command routing and the TCP remote console, and skip the Alta permission and identity checks. Mostly matters on a server.

Constructors​

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

Methods​

MemberWhat it is
static bool CancelRouteCommand()Prefix on CommandSync.RouteCommand that skips it, so wrist-menu console commands are dropped. TavernLib's comment isn't sure it's needed.
static void InstantCloseRemoteConsole(ServerConsoleManager __instance)Postfix on ServerConsoleManager.StartRemoteConsole that closes the game's remoteConsole (the TCP console on 1758) straight away.
static bool SkipValidateIdentityToken(ref Task<BooleanResponse> __result)Prefix on LowLevelApiClient.ValidateIdentityToken that answers valid without calling anything, since there's no Alta to ask.
static bool SortPermissions(ref Task<IEnumerable<GroupPermissions>> __result)Prefix on WebSocketCommandHandler.GetCurrentServerPermissionsForLoggedInUser that gives every console login the Console permission only.