CrushedPixel / PacketGate

Sponge library to manipulate incoming and outgoing Packets.
20 stars 11 forks source link

Monitor for packet spam #2

Closed codeHusky closed 6 years ago

codeHusky commented 7 years ago

Packet spam is kind of a big deal. Let’s say for instance, a player is in creative. They enable “nuker hacks”, which constantly break literally any block, even air, around them in a 8x8x8 box. This floods the anti grief plugin, which can’t keep up and slowly bogs the server down until watchdog throws the instance out.

An easy way to prevent this is to kick players that are sending way too many packets too quickly. ProtocoLib had something like that, so it seems like this having that would be good as well.

CrushedPixel commented 6 years ago

You could always add such functionality yourself using a PacketListener. PacketGate is not meant to solve any specific problems, just serve as a foundation for developers to operate at Packet level.