mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 00:47:27 +08:00
[+] Log user ID on login
This commit is contained in:
18
AquaMai/Utils/LogUserId.cs
Normal file
18
AquaMai/Utils/LogUserId.cs
Normal 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}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user