From efeedcbd4dc2b115ac0737fc397bde64d6b9656a Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sun, 2 Jan 2022 16:37:57 +0000 Subject: Suspicious packets: give 'em the silent treatment (#5375) Ref: #5372 --- src/Protocol/Protocol_1_8.cpp | 4 ++-- src/Protocol/Protocol_1_9.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Protocol') diff --git a/src/Protocol/Protocol_1_8.cpp b/src/Protocol/Protocol_1_8.cpp index 755bcb969..012821c61 100644 --- a/src/Protocol/Protocol_1_8.cpp +++ b/src/Protocol/Protocol_1_8.cpp @@ -2455,7 +2455,7 @@ void cProtocol_1_8_0::HandlePacketEntityAction(cByteBuffer & a_ByteBuffer) if (PlayerID != m_Client->GetPlayer()->GetUniqueID()) { - m_Client->Kick("Mind your own business! Hacked client?"); + LOGD("Player \"%s\" attempted to action another entity - hacked client?", m_Client->GetUsername().c_str()); return; } @@ -2840,7 +2840,7 @@ void cProtocol_1_8_0::HandleVanillaPluginMessage(cByteBuffer & a_ByteBuffer, con } default: { - m_Client->Kick("Unknown command block edit type - hacked client?"); + LOGD("Player \"%s\" sent an invalid command block edit type - hacked client?", m_Client->GetUsername().c_str()); return; } } diff --git a/src/Protocol/Protocol_1_9.cpp b/src/Protocol/Protocol_1_9.cpp index d7488a3a6..587b01f0d 100644 --- a/src/Protocol/Protocol_1_9.cpp +++ b/src/Protocol/Protocol_1_9.cpp @@ -938,7 +938,7 @@ void cProtocol_1_9_0::HandlePacketEntityAction(cByteBuffer & a_ByteBuffer) if (PlayerID != m_Client->GetPlayer()->GetUniqueID()) { - m_Client->Kick("Mind your own business! Hacked client?"); + LOGD("Player \"%s\" attempted to action another entity - hacked client?", m_Client->GetUsername().c_str()); return; } -- cgit v1.2.3