@Ordush
"Example: I used to host a minecraft server, where i recorded every block a player mined.I could then compare the amount of blocks mined to the amount of diamond blocks people mined.This way i could very easily see if people used "xray" to see where diamond blocks were.However if instead of going directly for the diamond blocks, they would mine a shit ton of stone, just for lols.I would have a harder time catching them.Then i'd compare amount of diamond to the time spent on the server, or diamond compared to other materials etc"
I used same tactics but i even spectated people. If they knew they have a diamond on their left and few times were correct with their random mining in short time they were hacking. I even used xray myself to see where diamonds are so i saw way sooner if they are heading for them then ban them and rollback everything they done. Logblock addon was so good for this