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

Don't re-apply command rate-limit when command is ratelimited #364

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

amyavi
Copy link
Contributor

@amyavi amyavi commented Sep 10, 2024

People are abusing this by spamming sudo * c:/// in command blocks. Since the command rate-limit is much higher than the rate you can spam commands in command blocks, it makes it pretty much impossible to chat/run commands.

This PR tries to fix that by only rate-limiting the player after the command was allowed to run, instead of always rate-limiting the player. This should create a small gap where players are allowed to run commands, even if someone is spamming sudo commands.

@kaboombot kaboombot merged commit 7450b8b into kaboomserver:master Sep 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants