jonahseguin / Reflex

A fast, accurate, and easy to use customizable AntiCheat for Spigot Minecraft servers
http://shawckz.com/project/reflex
8 stars 0 forks source link

No longer save all/duplicate alerts/violations to player #25

Closed jonahseguin closed 7 years ago

jonahseguin commented 7 years ago

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.

jonahseguin commented 7 years ago

TODO: add a "total VL" for players, so that we can have insights to the total amount of times a player has failed a check EVER (persistent)