Kick player who spams entity messages instead of rejecting them
This commit is contained in:
parent
e2d27e34a5
commit
56f4fe46a6
@ -193,7 +193,8 @@ class ServerWorldTracker(val world: ServerWorld, val client: ServerConnection, p
|
|||||||
val result = entityMessageQueue.trySend(packet)
|
val result = entityMessageQueue.trySend(packet)
|
||||||
|
|
||||||
if (result.isFailure) {
|
if (result.isFailure) {
|
||||||
client.send(EntityMessageResponsePacket(Either.left("Your client is sending too many entity messages!"), packet.id))
|
// client.send(EntityMessageResponsePacket(Either.left("Your client is sending too many entity messages!"), packet.id))
|
||||||
|
client.disconnect("Your client is sending too many entity messages!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user