Updated 30 November 2026
Want to know when someone on your Minecraft server suddenly finds a lot of diamonds or ancient debris? An x-ray alert plugin tells you in chat, only you and your staff see it, and it helps you catch players who use an x-ray texture pack or mod. This page shows two good plugins and how to set them up on ServerSpark.
Two good plugins (checked 30 November 2026)
- VeinGuard: simple alerts to staff when someone mines unusually many ores. It never kicks or bans anyone. The safest choice if you just want to be warned.
- Anti Xray: the most used one, with alerts, ore statistics per player and an admin menu (
/nax). It also has an automatic kick and ban system; see the warning below.
Both run on Paper, Purpur and Spigot, including Minecraft 26.x.
Install it
- Open your server in SparkPanel and go to Plugins.
- Search for VeinGuard or Anti Xray and click install.
- Restart the server.
- Give yourself the alert permission, or make yourself operator (
/op yourname), so the alerts reach you.
Warning: automatic bans in Anti Xray
Anti Xray can kick and ban players by itself (1 day, then 7 days, 30 days, then permanent), and when it bans someone it also clears their inventory and ender chest. A legitimate cave miner can get caught too. If you only want alerts:
- Type
/autokick offand check with/autokick status. - Open the plugin's config file in the
pluginsfolder and switch off any automatic ban setting.
Also good to know
- Paper has a built-in anti-xray that hides ores from x-ray clients. You find it in
config/paper-world-defaults.ymlunderanticheat.anti-xray. It hides ores, but it does not warn you. - Plugins only work on Paper, Purpur or Spigot, not on a vanilla or modded (Forge, Fabric) server. See Mods vs plugins.