1
This is my command block hack detection for the fly hack. The commands are below in this order. They are all chain command blocks, with a blank repeating command block before them to keep it constant.
Let me know what you think or give suggestions!
Click to reveal
scoreboard players remove @a[score_isFlying_min=50] isFlying 100
Click to reveal
scoreboard players reset @a[m=1] isFlying
Click to reveal
scoreboard players add @a[score_isFlying_min=100,m=0] isFlyHacking 1
Click to reveal
scoreboard players add @a[score_isFlyHacking_min=1] timesFlyHacked 1
Click to reveal
execute @a[score_isFlyHacking_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":"Flight","color":"red","hoverEvent":{"action":"show_text","value":"Could also be: Bhop, Glide, HClip"}},{"text":" (VL: ","color":"aqua"},{"score":{"objective":"timesFlyHacked","name":"@p"},"color":"aqua"},{"text":")","color":"aqua"}]
Click to reveal
scoreboard players remove @a[score_isFlyHacking_min=1] isFlyHacking 1
