Spam Kick Fix
Stops 'Kicked for spamming' on lagging servers. Separate, configurable chat and command limits for 1.21.1 and 1.21.11.
介绍
Your server hits a lag spike, someone types two lines in chat, and they get "Kicked for spamming". That’s a long-standing vanilla bug (MC-276819), and this mod fixes it.
Why it happens
Every chat message and command adds to a spam counter, and the counter goes down by one step every server tick. At a healthy 20 ticks a second that works out to about one message a second. When the server lags and runs fewer ticks, the counter barely goes down, so normal chatting adds up and the server kicks the player.
With this mod the counter goes down by the real time that has passed, as if the server had kept up. On a server running at full speed nothing changes.
Your own limits on 1.21.1 and 1.21.11
Minecraft 26.2 counts commands separately from chat and lets you change both limits in server.properties. This mod brings that to 1.21.1 and 1.21.11, so typing a few commands doesn’t use up your chat allowance.
The limits are in config/spam_kick_fix.properties:
chat-spam-threshold-seconds=10: how many messages a player can send in one burst (it refills at one a second). Set it to0and chat never gets anyone kicked.command-spam-threshold-seconds=10: the same for commands.real-time-cooldown=true: the lag fix above.
The two limit names match vanilla 26.2’s server.properties settings, which is why they say "seconds".
On 26.2 and newer, the limits are already in server.properties under the same names, so the config file only has the lag fix.
Ops are never kicked for spam, with or without this mod.
FAQ
Client or server? Only the server needs it (or your own game, in singleplayer). Players don’t need it to join.
Does it need anything else? No.
I also have Long-Standing Bug Fixes. That’s fine. It fixes the lag part as well, and when both mods are installed only one of them does it.
How is it tested? With game tests on 1.21.1, 1.21.11, 26.2 and 26.3, on both Fabric and NeoForge. They check the lag fix, the separate command limit and a limit of 0, and each test has a twin that runs without the mod and checks that vanilla still kicks.
Can I use it in my modpack? Yes, go ahead, no need to ask.
Please report bugs here.
MIT. Developed with AI assistance. Source: https://github.com/cambrova/long-standing-bug-fixes/tree/main/spam-kick-fix
常见问题
Spam Kick Fix 支持哪些 Minecraft 版本?
Spam Kick Fix 支持 Minecraft Java 版 1.21.1–26.3,共 4 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。
Spam Kick Fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
cambrova 的其他作品
查看全部 →Eternal Winter Reborn
It snows in every biome: deserts, jungles and plains turn to winter. Based on Eternal Winter by ichttt.
Long-Standing Bug Fixes
Fixes confirmed bugs that have stayed open for years: campfires and comparators, golem poppies, burning skeleton arrows, wind charges and items.
Mobs Attempt Parkour Updated
Mobs jump over gaps, water, lava and fire to reach you. An updated port of Mobs Attempt Parkour.
Collision Lag Fix
Stops fast TNT and other fast-moving entities from lagging the server with collision checks (MC-260743). Movement stays identical to vanilla.
评论
登录后评论和评分