JoinRejectionRecorder
A static class in TavernLib, TavernLib.Patches.
Client patches on JoinServerPipeline and JoinResult that record a server's mod refusal in last_rejection.json and hand over to the launcher to install the mods and rejoin. Also owns the Quick join preference.
- Listed in TavernLib.Patches
- Attributes
HarmonyPatch
Fields
4 private and internal fields
Properties
2 private and internal properties
Methods
| Member | What it is |
|---|---|
static bool AttemptToConnectToServer(JoinServerPipeline __instance, ref Task<JoinResult> __result) | Prefix on JoinServerPipeline.AttemptToConnectToServer: rejoining a server that refused you in the last 10 minutes quits for the launcher instead. |
static void InitQuickJoin() | Creates the TavernLib/QuickJoin MelonPreferences entry, mirroring the quick_join file both ways. Called by TavernLib on a client. |
static void OnServerRejectedRequest(Connection connection, ref ConfirmJoinMessage joinMessage, JoinServerPipeline __instance) | Prefix on JoinServerPipeline.OnServerRejectedRequest: for a mod refusal, writes last_rejection.json, rewrites the message and, with Quick join, quits after 4 seconds. |
static void ShowWhy(JoinResult __instance, ref string __result) | Postfix on the JoinResult.ErrorMessage getter that shows TavernLib's refusal line instead of the game's fixed one. |