I havent coded much lately, also havent been active on this forum but I had a (good) idea for a hack detector.
1. Make a bot
2. Make it invisible
3. Make it go randomly around the possible aimbotter
4. If he shoots it, redo this.
5. If he headshots it, ban right away.
6. if he keeps shooting it, ban him.
Also remove the deadmessage of the bot, and if possible make him invisible on the scoreboard.