-
-
Notifications
You must be signed in to change notification settings - Fork 132
Description
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
- Start up a Vanilla server. Make sure
packet-rate-limitis set relatively low inserver.properties, e.g. to 100. - Op yourself, then join with Client Commands.
- Put a ton of chests somewhere, preferably close together and very close to your player (at least 200 - you can use
/fillfor this). - 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.