Skip to content

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

@TheMuffinPony

Description

@TheMuffinPony

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions