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

Prevent repeat / simultaneous / accidental punishments against a single user #8

Open
TBG1000 opened this issue Jul 6, 2022 · 0 comments

Comments

@TBG1000
Copy link
Member

TBG1000 commented Jul 6, 2022

Issue:

Staff members may accidentally punish a user for the same reason / length at the same time, piling up the user's punishment history and requiring one of the duplicate punishments to be reverted.

Background / pre-existing solutions:

Before the switch from TGM to PGM, the aforementioned issue was mitigated with WarzoneMC/tgm#711. This change added a 10 second cooldown after each punishment was delivered. If another staff member attempted to punish the same user while the cooldown was active, a message like the following would be displayed:

image

Resending the command to confirm was useful for cases where the repeat punishment(s) may not have been accidental, or may not have been the same type/length as the first punishment that went through.

Affected areas / files:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant