How to Fix Disconnect: Spam
Kicked for spamming means chat messages or commands arrived faster than the server allows. How the counter works and the 26.2 settings that change it.
Quick Fix
Wait a few seconds after a burst of messages or commands and keep to about one per second. Server owners on 26.2 or later can raise chat-spam-threshold-seconds and command-spam-threshold-seconds, or set them to 0.
Error Message
Kicked for spammingHow to Fix
Slow down. One message per second empties the counter as fast as it fills, so normal chatting won't get you kicked on a healthy server.
Give any macro or mod that sends messages for you a delay of at least one second between messages.
On 26.2 or later, raise chat-spam-threshold-seconds and command-spam-threshold-seconds in server.properties, or set them to 0 so nobody is kicked for spam. Vanilla servers before 26.2 have no setting for this.
Operators are never kicked for spam, and neither is the host of a singleplayer world opened to LAN.
Check the exact kick message. rate-limit in server.properties is a different limit on packets per second, off by default, and its kick reads Kicked for exceeding packet rate limit.
Common Causes
- Chat messages sent faster than the server allows. Each message adds one second to a counter, and the counter runs down while the server ticks. When it reaches the threshold, 10 seconds by default, the server kicks you. In practice that is about ten messages in a row.
- Commands sent too quickly. On 26.2 and later commands have their own counter, set with command-spam-threshold-seconds.
- A macro, auto-clicker, chat mod or script that sends messages or commands in a loop.
- A lagging server. The counter only runs down while the server ticks, so below 20 ticks per second it empties more slowly and a normal pace can still fill it.
Diagnostic Steps
- Note whether you were chatting or running commands when you were kicked.
- Reconnect and keep to about one message per second.
- Turn off or slow down any macro or auto-command mod.
- Admin: check chat-spam-threshold-seconds, command-spam-threshold-seconds and the server's tick rate.
FAQ
How fast can I send messages?
With the default of 10 seconds, about ten messages in a row gets you kicked. One message per second can go on for as long as you like, because the counter empties by one second every second.
Can server owners turn the spam kick off?
On 26.2 and later, yes. Set chat-spam-threshold-seconds and command-spam-threshold-seconds to 0 in server.properties. Both settings were added in 26.2 Pre-Release 1.
Are operators exempt?
Yes. Operators and the host of a singleplayer world are never kicked for spam.