public virtual async Task Close(DisconnectReasons disconnectReason) { await Send(new SystemDisconnectMessage(disconnectReason)); await Close(disconnectReason.ToString()); }
public static void Postfix(AmongUsClient __instance, [HarmonyArgument(0)] ClientData client, [HarmonyArgument(1)] DisconnectReasons reason) { Logger.info($"Player \"{client.PlayerName}(ID:{client.Id})\" Left (Reason: {reason.ToString()})", "Session"); }