mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-04-20 11:28:15 +02:00
feat: implement command rate limiter (#1524)
This commit is contained in:
@@ -62,4 +62,6 @@ velocity.command.dump-server-error=An error occurred on the Velocity servers and
|
||||
velocity.command.dump-offline=Likely cause: Invalid system DNS settings or no internet connection
|
||||
velocity.command.send-usage=/send <player> <server>
|
||||
# Kick
|
||||
velocity.kick.shutdown=Proxy shutting down.
|
||||
velocity.kick.shutdown=Proxy shutting down.
|
||||
velocity.kick.command-rate-limit=You are sending too many commands too quickly.
|
||||
velocity.kick.tab-complete-rate-limit=You are sending too many tab complete requests too quickly.
|
||||
@@ -156,6 +156,27 @@ accepts-transfers = false
|
||||
# threads. Disabled by default. Requires Linux or macOS.
|
||||
enable-reuse-port = false
|
||||
|
||||
# How fast (in milliseconds) are clients allowed to send commands after the last command
|
||||
# By default this is 50ms (20 commands per second)
|
||||
command-rate-limit = 25
|
||||
|
||||
# Should we forward commands to the backend upon being rate limited?
|
||||
# This will forward the command to the server instead of processing it on the proxy.
|
||||
# Since most server implementations have a rate limit, this will prevent the player
|
||||
# from being able to send excessive commands to the server.
|
||||
forward-commands-if-rate-limited = true
|
||||
|
||||
# How many commands are allowed to be sent after the rate limit is hit before the player is kicked?
|
||||
# Setting this to 0 or lower will disable this feature.
|
||||
kick-after-rate-limited-commands = 0
|
||||
|
||||
# How fast (in milliseconds) are clients allowed to send tab completions after the last tab completion
|
||||
tab-complete-rate-limit = 10
|
||||
|
||||
# How many tab completions are allowed to be sent after the rate limit is hit before the player is kicked?
|
||||
# Setting this to 0 or lower will disable this feature.
|
||||
kick-after-rate-limited-tab-completes = 0
|
||||
|
||||
[query]
|
||||
# Whether to enable responding to GameSpy 4 query responses or not.
|
||||
enabled = false
|
||||
|
||||
Reference in New Issue
Block a user