Black Friday: first month 50% off on monthly plans, or your first month free when you pay per quarter. Until Monday 30 November 23:59. See the plans Conditions
New customers: first month 50% off monthly plans, until 30 Nov
New here? Try a Minecraft server or Discord bot free for 24 hours. Try free
ServerSparkServerSpark

Knowledge base

See who mines rare ores: x-ray alert plugins for Minecraft

Get a chat alert when someone mines unusually many diamonds or ancient debris. Two plugins for Paper 26.x, how to install them, and how to switch off automatic bans.

NVMe nodesNightly backupsOnline in minutes

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

  1. Open your server in SparkPanel and go to Plugins.
  2. Search for VeinGuard or Anti Xray and click install.
  3. Restart the server.
  4. 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 off and check with /autokick status.
  • Open the plugin's config file in the plugins folder 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.yml under anticheat.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.
Rather have us set it up? Our Setup service sets up your whole server, plugins included.