Overview
Spigot/Vanilla does not provide any level of protection against packet spam. As such, individual players can send as many packets as they want.
I found that while testing on 1.13, I could send about ~40,000 move packets to the server and either take it down or make it lag very hard due to the processing of the move packets on the server thread.
The solution was to limit the maximum packets/s a client could send.
Dependencies
Requires https://www.spigotmc.org/resources/protocollib.1997/
Configuration
The configuration is simple, containing a max packet rate and the interval that rate is measured over. The kick message is also configurable.
In general, raising the interval will allow higher peak packet rates, which will be better for players with very poor networking. Lowering will have the opposite effect.
The defaults are targeted at preventing obvious packet spam, like my example, while still leaving good room for players with really bad networking.
Spigot/Vanilla does not provide any level of protection against packet spam. As such, individual players can send as many packets as they want.
I found that while testing on 1.13, I could send about ~40,000 move packets to the server and either take it down or make it lag very hard due to the processing of the move packets on the server thread.
The solution was to limit the maximum packets/s a client could send.
Dependencies
Requires https://www.spigotmc.org/resources/protocollib.1997/
Configuration
The configuration is simple, containing a max packet rate and the interval that rate is measured over. The kick message is also configurable.
In general, raising the interval will allow higher peak packet rates, which will be better for players with very poor networking. Lowering will have the opposite effect.
The defaults are targeted at preventing obvious packet spam, like my example, while still leaving good room for players with really bad networking.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.12, 1.13, 1.14
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Packet Limiter is a free Minecraft Java mod. Compatible with Minecraft 1.12, 1.13, 1.14, 1.15 and newer. Downloaded 21,386 times (via Spigot). Download it and open it directly in the game.