Changing the tick rate affects that rate that chat spam detection "decays" over time. If the tick rate is low, players can get kicked for spamming even if they chat slower than the usual 1 message per second rate.
To reproduce:
Join a server and make sure you are not opped
In console: /tick rate 1
Send 9 chat messages within 30 seconds
Wait 10 seconds
Send 9 chat messages within 30 seconds
Notice that you are kicked for spamming during step 5
Repeat steps 1-5 with /tick rate 20, notice that you are not kicked
Code analysis:
In ServerGamePacketListenerImpl
, tick()
decrements chatSpamTickCount
every tick, but detectRateSpam()
increments chatSpamTickCount
by 20 regardless of the tick rate.
Comments 0
No comments.