So you maybe using xray plugins to protect your server from xray but today i dound a scret way to stop xray on your server without any plugins so what you need to do is go to files and then go to config and then go to paper-world-defaults.yml after that scrool down a little bit and then you will find
anti-xray:
enabled: false
turn that to
anti-xray:
enabled: true
and then if any player try to xray it will show fake ores instead of real ores Hope this helps you