Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to rate-limit packets sent to prevent getting kicked #701

Open
TheMuffinPony opened this issue Jan 2, 2025 · 0 comments
Open

Ability to rate-limit packets sent to prevent getting kicked #701

TheMuffinPony opened this issue Jan 2, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@TheMuffinPony
Copy link

Hi!

Problem

I play on a vanilla server (with operator privileges) with a relatively low packet rate limit. Whenever I try to use /cfinditem in areas with lots of chests, I get kicked for exceeding the packet rate limit.

Reproduction

  1. Start up a Vanilla server. Make sure packet-rate-limit is set relatively low in server.properties, e.g. to 100.
  2. Op yourself, then join with Client Commands.
  3. Put a ton of chests somewhere, preferably close together and very close to your player (at least 200 - you can use /fill for this).
  4. Run /cfinditem chest. You will get kicked for exceeding the packet rate limit.

I'm 99% sure this will reproduce the issue, but I haven't checked this exact setup.

Suggested Solution

Add something to /cconfig that limits how many packets Client Commands can send at a time.

Also, perhaps add an option to override whether the player is an operator to use the non-operator chest finding system, e.g. if the server does not answer F3+I requests. (Some modded servers tell the player that they are OP when they aren't to enable the F3 F4 gamemode switcher.)

Environment

Minecraft version 1.21.4. Fabric Loader version 0.16.9. Fabric API version 0.114.0+1.21.4. Client Commands version 2.9.9.

@xpple xpple added the enhancement New feature or request label Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants