sharp-chat/SharpChat.SockChat/PacketsS2C/KickBanNoRecordErrorS2CPacket.cs

19 lines
544 B
C#
Raw Normal View History

namespace SharpChat.SockChat.PacketsS2C {
public class KickBanNoRecordErrorS2CPacket : SockChatTimedS2CPacket {
2024-05-14 22:17:25 +00:00
private readonly string TargetName;
public KickBanNoRecordErrorS2CPacket(string targetName) {
2024-05-14 22:17:25 +00:00
TargetName = targetName;
}
public override string Pack() {
return string.Format(
"2\t{0}\t-1\t1\fnotban\f{1}\t{2}\t10010",
TimeStamp.ToUnixTimeSeconds(),
TargetName,
MessageId
);
2024-05-14 22:17:25 +00:00
}
}
}