Skip to content

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

@TBG1000

Description

@TBG1000

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions