This commit is contained in:
shoopea
2020-06-15 14:44:52 +02:00
parent 8b781d9eae
commit 024fc73fb0
2 changed files with 51 additions and 1 deletions

14
main.go
View File

@@ -130,7 +130,19 @@ func main() {
Packet: p,
}
sp.Read(b[:p.PLength])
logInfoDebug("AdminPacketServerClientError :\n- ClientID: %d", sp.ClientID)
logInfoDebug("AdminPacketServerClientQuit :\n- ClientID: %d", sp.ClientID)
case AdminPacketServerChat:
sp := PacketAdminServerChat{
Packet: p,
}
sp.Read(b[:p.PLength])
logInfoDebug("AdminPacketServerChat :\n- ActionID: %d\n- DestinationID: %d\n- ClientID: %d\n- Message: %s\n- Amount: %d", sp.ActionID, sp.DestinationID, sp.ClientID, sp.Message, sp.Amount)
case AdminPacketServerConsole:
sp := PacketAdminServerConsole{
Packet: p,
}
sp.Read(b[:p.PLength])
logInfoDebug("AdminPacketServerConsole :\n- Origin: %s\n- Text: %s", sp.Origin, sp.Text)
default:
logInfoDebug("Packet fully read : len : %d / type : %d", p.PLength, p.PType)
}