1

Command Block Hack Detection: Derp Hack

Heklo 11/24/16 8:58 pm
713
11/25/2016 1:16 pm


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]
Posted by
Heklo
Level 25 : Expert System
15

  Have something to say?

JoinSign in

6

Latiodile
11/25/2016 1:09 pm
Level 16 : Journeyman Dragon
but that's THE MOST harmless cheat out of all of them, why would anyone bother? even major plugins like NCP don't bother
1
Heklo
11/25/2016 1:16 pm
Level 25 : Expert System
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
1
Smooth-Cobalt2
11/25/2016 8:35 am
Level 35 : Artisan Blockhead
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.
1
Heklo
11/25/2016 9:10 am
Level 25 : Expert System
Good idea! This would be the new tellraw command, or the third command on my list:
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.
1
ExtremeGaming654
11/25/2016 1:39 am
Level 1 : New Explorer
Interesting. Will there be problems if a player is using elytra or has a levitation effect on them?
1
Heklo
11/25/2016 7:12 am
Level 25 : Expert System
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.
1

Welcome