[+] Log user ID on login

This commit is contained in:
Clansty
2024-09-11 00:56:15 +08:00
parent 39dc6c576a
commit b7c5d18df1
5 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using System;
using HarmonyLib;
using MelonLoader;
using Net.Packet;
using Net.Packet.Mai2;
using Net.VO.Mai2;
namespace AquaMai.Utils;
public class LogUserId
{
[HarmonyPostfix]
[HarmonyPatch(typeof(PacketGetUserPreview), MethodType.Constructor, typeof(ulong), typeof(string), typeof(Action<ulong, UserPreviewResponseVO>), typeof(Action<PacketStatus>))]
public static void Postfix(ulong userId)
{
MelonLogger.Msg($"UserLogin: {userId}");
}
}