diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-01-02 17:37:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-02 17:37:57 +0100 |
commit | efeedcbd4dc2b115ac0737fc397bde64d6b9656a (patch) | |
tree | 9c93123f21a8edb7bd43004701a788d1e77dfbdc /src/Protocol | |
parent | Fixed diagonal redstone powering (#5363) (diff) | |
download | cuberite-efeedcbd4dc2b115ac0737fc397bde64d6b9656a.tar cuberite-efeedcbd4dc2b115ac0737fc397bde64d6b9656a.tar.gz cuberite-efeedcbd4dc2b115ac0737fc397bde64d6b9656a.tar.bz2 cuberite-efeedcbd4dc2b115ac0737fc397bde64d6b9656a.tar.lz cuberite-efeedcbd4dc2b115ac0737fc397bde64d6b9656a.tar.xz cuberite-efeedcbd4dc2b115ac0737fc397bde64d6b9656a.tar.zst cuberite-efeedcbd4dc2b115ac0737fc397bde64d6b9656a.zip |
Diffstat (limited to 'src/Protocol')
-rw-r--r-- | src/Protocol/Protocol_1_8.cpp | 4 | ||||
-rw-r--r-- | src/Protocol/Protocol_1_9.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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; } |