![[MAX] ML Anti XRay](https://cdn.modrinth.com/data/u0aVZy46/d41e90364500f273c8bacb37523cf01121d7b2ae_96.webp)
[MAX] ML Anti XRay
Automatically flag potential xrayers with Machine Learning
Fixed a vulnerability and removed the version of the plugin on the modrinth page which contains it. It is critical you update to this version.
Audit logs
Log player infractions with configurable limits on the amount of player infractions to save at a time, and how many of their infractions to save, this ensures admins know that a player has been likely xraying and lets them teleport to where that infraction happened without bloating storage space.

Checking for updates
Plugin will now automatically warn you when updates are available so you never fail to have the newest protections against xray!
HUGE UPDATE
Refined config naming
Fixed the awful naming of
only-count-unexposed-oresto a much more understandableexposed-ores-countedRefined exposed ore logic
It used to be that, if a block was broken near an ore which was already exposed, it would count that as an ore the player probably illegitimately uncovered! This caused many issues with the plugin's false positives and I'm happy to announce that this is now fixed!
Late to catch an xrayer? Don't worry!
If the plugin suspects someone it'll automatically allow you to teleport to the mine they were using in order to check whether it looked illegitmate or not. This is also logged in the console AND webhooks for easy catching!
New command
This new command is basically exclusive to the feature above, it allows you to quickly teleport to abusers via a teleport id. This teleport id is shown in console and webhooks. Usage
/xray teleport <id>Bug fixes relating to players changing dimensions
- Added automatic punishment option
- Alongside with config settings to change it's threshold, command and whether it's enabled (by default it's not)
Fixed a weight being based off the wrong value (sorry this may break some ppls configs) and added a ML update system so we can improve detections for you (confirmed by you don't worry your config will never be overwritten without your permission)!
Logs xray alerts in console now and fixed a bug where /xray reload didn't require any extra permissions so it is recommended to update to this version asap or it may allow players to lag the server slightly.
BStats implementation + Discord webhooks
Now contains /xray <reload/alerts> to toggle alerts and reload the configuration. Also added to the detections with a new config data piece called "only-count-unexposed-ores" where the model will only care when you mine an ore that wasn't previously exposed which prevents some rare possible falses and is enabled by default.
Created the original plugin.