1
Today I made derp/headless hack detection. Keep in mind that "Derp" has different meanings for some clients and therefore will not detect all of them. In this case, it tests for players looking or appearing to look out of the possible sight range (91-180).
Here are the following commands to create this, in sequential order. They are all chain command blocks, preceded by a blank repeating command block to keep the cycle going.
Click to reveal
scoreboard players add @a[rxm=91,rx=180] isDerpHacking 1
Click to reveal
scoreboard players add @a[score_isDerpHacking_min=1] timesDerpHacked 1
Click to reveal
execute @a[score_isDerpHacking_min=1] ~ ~ ~ tellraw @a [{"text":"[Heklo's Anticheat] ","color":"gold"},{"selector":"@p","color":"red"},{"text":" has set off hack detection. Hack type: ","color":"green"},{"text":"Derp","color":"red","hoverEvent":{"action":"show_text","value":"Includes: Derp, Headless"}},{"text":" (VL: ","color":"aqua"},{"score":{"objective":"timesDerpHacked","name":"@p"},"color":"aqua"},{"text":")","color":"aqua"}]
Click to reveal
scoreboard players remove @a[score_isDerpHacking_min=1] isDerpHacking 1
Let me know what you think! A shorter version of this if you wanted to do it manually would be to /testfor @a[rxm=91,rx=180]
6
but that's THE MOST harmless cheat out of all of them, why would anyone bother? even major plugins like NCP don't bother
While it is harmless, it's function is to show if players are using a client. Lots of servers don't even allow clients to be used period, and NCP can show this as MorePackets
That looks good. Maybe make it easier for some sort of like TP to the player who's using the hack by clicking something inside the command.
Good idea! This would be the new tellraw command, or the third command on my list:
You would click on their name to teleport to them in this new command.
Click to reveal
execute @a[score_isDerpHacking_min=1] ~ ~ ~ tellraw @a [{"text":"[Heklo's Anticheat] ","color":"gold"},{"selector":"@p","color":"red","clickEvent":{"action":"run_command","value":"/tp @p @a[score_isDerpHacking_min=1]"}},{"text":" has set off hack detection. Hack type: ","color":"green"},{"text":"Derp","color":"red","hoverEvent":{"action":"show_text","value":"Includes: Derp, Headless"}},{"text":" (VL: ","color":"aqua"},{"score":{"objective":"timesDerpHacked","name":"@p"},"color":"aqua"},{"text":")","color":"aqua"}]
You would click on their name to teleport to them in this new command.
Interesting. Will there be problems if a player is using elytra or has a levitation effect on them?
I don't believe so. I think players on elytra's can only look between that range as well, but Ill check it out. Also, I didn't realize levitation did anything to effect vision, but ill experiment with that as well. Thanks for the ideas.
