Current violation saving system
ALL violations on a player are saved in individual documents with unique ids.
This is an issue, as in setups where autobans are disabled, a player will spam violations for a check they fail, and they will end up with hundreds of violations that are impossible to make sense of.
Instead:
Only save the amount of violations a player has for each check,
and a timestamp of the most recent failure a player has for each check, to see how recently a player has failed a given check.
However, continue to locally cache violations on a player for 2 hours (renewed for another 2 hours every time it is accessed). Obviously, these will be unavailable on restart.
Current violation saving system ALL violations on a player are saved in individual documents with unique ids.
This is an issue, as in setups where autobans are disabled, a player will spam violations for a check they fail, and they will end up with hundreds of violations that are impossible to make sense of.
Instead:
Only save the amount of violations a player has for each check, and a timestamp of the most recent failure a player has for each check, to see how recently a player has failed a given check.
However, continue to locally cache violations on a player for 2 hours (renewed for another 2 hours every time it is accessed). Obviously, these will be unavailable on restart.