Guest User

Hydra Anticheat version 1.2

a guest
Oct 23rd, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.82 KB | None | 0 0
  1. # Hydra AntiCheat from the developers of WASP AntiCheat know as xXPureLifeXx#4033, _LkZ#9628
  2. # Detections: Killaura, Fly, Speed, Reach, SelfHurt, NoFall and AirWalk (More Coming Soon)
  3. # Main Developer: _LkZ
  4. # Developer: xXPureLifeXx
  5. # find our terms of use and more updates at: https://hydra-anticheat.carrd.co
  6. # the guy who like fixed all the lag and added 3 new epic detections: dnadany (https://discord.gg/6RFZYxt)
  7.  
  8. options:
  9. version: 1.2
  10. NoPermission: &c&lHydra &8>> &4Invalid Permission!
  11. chatCoolDownMessage: &c&lHydra &8>> &4There is a 3 second delay between every message!
  12.  
  13. variables:
  14. eula: false
  15. kick_10_alerts: true
  16.  
  17.  
  18. command /hydra [<text>] [<offline player>]:
  19. permission: hydra.command.command
  20. permission message: {@NoPermission}
  21. trigger:
  22. if arg 1 is not set:
  23. send "&c&lHydra &8>> &c/hydra help"
  24. if arg 1 is "help":
  25. send "&c&lHydra AntiCheat. &fMade by _LkZ, and xXPureLifeXx"
  26. send "&c/hydra help"
  27. send "&c/hydra freeze <player>"
  28. send "&c/hydra alerts <player>"
  29. if arg 1 is "freeze":
  30. if arg 2 is set:
  31. if player has permission "hydra.command.freeze":
  32. if {freezed::%arg 2%} is false:
  33. set {freezed.%arg 2%} to true
  34. send "&c&lHydra &8>> &c%arg 2%&f is now frozen!"
  35. else:
  36. set {freezed::%arg 2%} to false
  37. send "&c&lHydra &8>> &c%arg 2% is no longer frozen!"
  38. else:
  39. send "{@NoPermission}"
  40. if arg 1 is "alerts":
  41. if arg 2 is set:
  42. if player has permission "hydra.command.logs":
  43. send "&cAuto Clicker Logs: %{autoclickerlogs::%arg 2%}%"
  44. send "&cKillaura logs: %{killauralogs::%arg 2%}%"
  45. send "&cSpeed / Flight Logs: %{speedalerts::%arg 2%}%"
  46. send "&cReach Logs: %{reachalerts::%arg 2%}%"
  47. send "&cAnti Knockback Logs: %{antikbalerts::%arg 2%}%"
  48. send "&cFast Bow Logs: %{fastbowalerts::%arg 2%}%"
  49. else:
  50. send "{@NoPermission}"
  51. else:
  52. send "&c&lHydra &8>> &cPlease specify a player!"
  53.  
  54.  
  55. every 30 seconds:
  56. delete {alerts::*}
  57.  
  58. on left click:
  59. add 1 to {killaura::%player%}
  60. if {killaura::%player%} >= 20:
  61. set {_ping} to player's ping
  62. send "&c&lHydra &8>> &c%player%&f has failed Auto Clicking (&c%{_ping}%&c MS&f) (%{killaura::%player%}%&c&l CPS" to all players where [player input has permission "hydra.logs"]
  63. add 1 to {autoclickerlogs::%player%}
  64. execute console command "auratest %player%"
  65. add 1 to {alerts::%player%}
  66. if {alerts::%player%} >= 10:
  67. kick player due to "&c&lHydra &8>> &cCheating"
  68.  
  69. on left click:
  70. add 1 to {clickauratest::%player%}
  71. if {clickauratest::%player%} >= 13:
  72. execute console command "auratest %player%"
  73.  
  74. every 1 second:
  75. delete {clickauratest::*}
  76. delete {killaura::*}
  77.  
  78. command /ka [<text>]:
  79. trigger:
  80. if {invtget::%player%} is true:
  81. if arg 1 is "<none>":
  82. add 1 to {invt::%player%}
  83. if {invt::%player%} > 3:
  84. set {_ping} to player's ping
  85. send "&c&lHydra &8>> &c%player% has failed &cInvalid Target&f. (&c%{_ping}%&f)" to all players where [player input has permission "hydra.logs"]
  86. add 1 to {killauralogs::%player%}
  87. add 1 to {alerts::%player%}
  88. if {alerts::%player%} >= 10:
  89. kick player due to "&c&lHydra &8>> &cCheating"
  90. else:
  91. stop
  92.  
  93. on damage:
  94. set {invtget::%attacker%} to true
  95. wait 2 ticks
  96. set {invtget::%attacker%} to false
  97.  
  98. on left click:
  99. if {invtget::%player%} is true:
  100. make player execute command "ka %targeted entity%"
  101.  
  102. on damage:
  103. add 1 to {hits::%attacker%}
  104.  
  105. on left click:
  106. add 1 to {leftclicks::%player%}
  107.  
  108. on death:
  109. if {hits::%attacker%} = {leftclicks::%attacker%}:
  110. execute console command "auratest %attacker%"
  111.  
  112. command /auratest [<player>]:
  113. permission: hydra.command.auratest
  114. permission message: &c&lHydra >> No Permissions
  115. trigger:
  116. if {auratest.%arg 1%} is false:
  117. set {loc} to location behind arg 1
  118. set {attacker} to arg 1
  119. set {auratest.%arg 1%} to true
  120. spawn a zombie at {loc}
  121. set {bot} to last spawned entity
  122. wait 5 ticks
  123. set {auratest.%arg 1%} to false
  124. delete last spawned entity
  125.  
  126. on damage:
  127. if attacker is {attacker}:
  128. if victim is {bot}:
  129. delete {bot}
  130. set {_ping} to attacker's ping
  131. send "&c&lHydra &r&8>> &c%attacker%&f has failed KillAura. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
  132. add 1 to {killauralogs::%attacker%}
  133. add 1 to {alerts::%attacker%}
  134. if {alerts::%attacker%} >= 10:
  135. kick attacker due to "&c&lHydra &8>> &cCheating"
  136. else:
  137. if victim is {bot}:
  138. cancel event
  139.  
  140. on any move:
  141. player is not flying
  142. block below player is air
  143. block north below player is air
  144. block south below player is air
  145. block west below player is air
  146. block east below player is air
  147. block north east below player is air
  148. block south east below player is air
  149. block north west below player is air
  150. block south west below player is air
  151. the gliding state of player is true:
  152. player's chestplate is elytra:
  153. stop
  154. else:
  155. block under player is air
  156. player is on ground
  157. set {_y} to player's y coordinate
  158. wait 1 tick
  159. set {_ping} to player's ping
  160. set {_y.2} to player's y coordinate
  161. if {_y} > {_y.2}:
  162. send "&c&lHydra &8>> &c%player%&f has failed Fly. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
  163. else if {_y} = {_y.2}:
  164. send "&c&lHydra &8>> &c%player%&f has failed AirWalk. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
  165. else if {_y} > {_y.2}:
  166. send "&c&lHydra &8>> &c%player%&f has failed NoFall. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
  167. teleport player to {flysetback::%player%}
  168.  
  169. on any move:
  170. player is not flying
  171. player's gamemode is not creative
  172. block below player is air
  173. block north below player is air
  174. block south below player is air
  175. block west below player is air
  176. block east below player is air
  177. block north east below player is air
  178. block south east below player is air
  179. block north west below player is air
  180. block south west below player is air
  181. player is not on ground
  182. the gliding state of player is true:
  183. player's chestplate is elytra:
  184. stop
  185. set {fly::%player%} to 0
  186. else:
  187. set {ylocation::%player%} to the y location of player
  188. set {flysetback::%player%} to location of the player
  189. wait 2 ticks
  190. set {ylocation2::%player%} to the y location of player
  191. wait 1 tick
  192. if difference between {ylocation::%player%} and {ylocation2::%player%} = 0:
  193. add 1 to {fly::%player%}
  194. if {fly::%player%} > 4:
  195. teleport player to {flysetback::%player%}
  196. set {_ping} to player's ping
  197. send "&c&lHydra &8>> &c%player%&f has failed Flight. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "hydra.logs"]
  198. add 1 to {speedalerts::%player%}
  199. add 1 to {alerts::%player%}
  200. if {alerts::%player%} >= 10:
  201. kick player due to "&c&lHydra &8>> &cCheating"
  202.  
  203. every 2 seconds:
  204. delete {fly::*}
  205.  
  206. on flight toggle:
  207. if {speedcheck::%player%} is true:
  208. set {speedcheck::%player%} to false
  209. else:
  210. wait 15 seconds
  211. set {speedcheck::%player%} to true
  212.  
  213. on any move:
  214. player's gamemode is not creative
  215. player is not flying
  216. set {y::%player%} to the y location of player
  217. set {ysetback::%player%} to location of the player
  218. wait 5 ticks
  219. set {y1::%player%} to the y location of player
  220. wait 1 tick
  221. set {_diffyy::%player%} to difference between {y::%player%} and {y1::%player%}
  222. wait 1 tick
  223. player is not on ground
  224. if {_diffyy::%player%} >= 2:
  225. set {_ping} to player's ping
  226. teleport player to {ysetback::%player%}
  227. send "&c&lHydra &8>> &c%player% has failed Y-Fly. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "hydra.logs"]
  228.  
  229. on any move:
  230. player doesn't have speed
  231. if {speedcheck::%player%} is true:
  232. set {_loc::%player%} to the x location of player
  233. set {speedsetback::%player%} to location of the player
  234. wait 5 ticks
  235. set {_loc1::%player%} to the x location of player
  236. wait 1 tick
  237. set {_diffyx::%player%} to difference between {_loc::%player%} and {_loc1::%player%}
  238. if difference between {_loc::%player%} and {_loc1::%player%} >= 3.7:
  239. player's gamemode is not creative
  240. player is not flying
  241. add 1 to {speed::%player%}
  242. if {speed::%player%} >= 3:
  243. teleport player to {speedsetback::%player%}
  244. set {_ping} to player's ping
  245. send "&c&lHydra &8>> &c%player% &fhas failed Speed. (&c%{_ping}%&c MS&f) (&c%{_diffyx::%player%}% Blocks Per Second)." to all players where [player input has permission "hydra.logs"]
  246. add 1 to {speedalerts::%player%}
  247. add 1 to {alerts::%player%}
  248. if {alerts::%player%} >= 10:
  249. kick player due to "&c&lHydra &8>> &cCheating"
  250.  
  251. on any move:
  252. player doesn't have speed
  253. if {speedcheck::%player%} is true:
  254. set {_locz::%player%} to the z location of player
  255. set {speedsetback::%player%} to location of the player
  256. wait 5 ticks
  257. set {_loc1z::%player%} to the z location of player
  258. wait 1 tick
  259. set {_diffy::%player%} to difference between {_locz::%player%} and {_loc1z::%player%}
  260. if difference between {_locz::%player%} and {_loc1z::%player%} >= 3.7:
  261. player's gamemode is not creative
  262. player is not flying
  263. add 1 to {speed::%player%}
  264. if {speed::%player%} >= 3:
  265. teleport player to {speedsetback::%player%}
  266. set {_ping} to player's ping
  267. send "&c&lHydra &8>> &c%player% &fhas failed Speed. (&c%{_ping}%&c MS&f) (&c%{_diffy::%player%}%&c Blocks Per Second&f)." to all players where [player input has permission "hydra.logs"]
  268. add 1 to {speedalerts::%player%}
  269. add 1 to {alerts::%player%}
  270. if {alerts::%player%} >= 10:
  271. kick player due to "&c&lHydra &8>> &cCheating"
  272.  
  273. on damage:
  274. attacker is a player
  275. set {_reach} to distance between attacker and victim
  276. if {_reach} > 4:
  277. if damage cause is not a projectile:
  278. attacker's gamemode is not creative:
  279. cancel event
  280. set {_ping} to attacker's ping
  281. send "&c&lHydra &8>> &c%attacker% &fhas failed &cReach&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "hydra.logs"]
  282. add 1 to {reachalerts::%attacker%}
  283.  
  284.  
  285. on damage:
  286. if attacker is victim:
  287. if damage cause is not a projectile:
  288. cancel event
  289. set {_ping} to attacker's ping
  290. send "&c&lHydra &8>> &c%attacker% &fhas failed SelfHurt. (&c%{_ping}%&c MS)" to all players where [player input has permission "hydra.logs"]
  291.  
  292.  
  293. on damage of a player:
  294. victim is not flying
  295. damage wasn't caused by fall, potion, lava, burning, fire, poison or wither
  296. victim is not burning
  297. victim doesn't have poison
  298. victim doesn't have wither:
  299. set {antikb::%victim%} to location of victim
  300. wait 10 ticks
  301. set {antikb2::%victim%} to location of victim
  302. block at victim is not cobweb:
  303. block at victim is not water:
  304. victim is not riding:
  305. if {antikb::%victim%} = {antikb2::%victim%}:
  306. set {_ping} to victim's ping
  307. send "&c&lHydra &8>> &c%victim% has been detected using &cAnti Knockback&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "hydra.logs"]
  308. add 1 to {alerts::%victim%}
  309. add 1 to {antikbalerts::%victim%}
  310. if {alerts::%victim%} >= 10:
  311. kick victim due to "&c&lHydra &8>> &cCheating"
  312.  
  313. on chat:
  314. wait 1 tick
  315. set {chatcooldown::%player%} to true
  316. wait 3 seconds
  317. set {chatcooldown::%player%} to false
  318.  
  319. on chat:
  320. if {chatcooldown::%player%} is true:
  321. player does not have permission "hydra.chat.cooldown.bypass":
  322. send "{@chatCoolDownMessage}"
  323.  
  324. on shoot:
  325. if projectile is an arrow:
  326. if difference between {bow::%shooter%} and now is less than 2 ticks:
  327. cancel event
  328. set {_ping} to shooter's ping
  329. loop all players:
  330. loop-player has permission "hydra.logs":
  331. send "&c&lHydra &8>> &c%shooter% has failed &cFast Bow&f. (&c%{_ping}%&c MS&f)."
  332. add 1 to {alerts::%shooter%}
  333. add 1 to {fastbowalerts::%shooter%}
  334. if {alerts::%shooter%} >= 10:
  335. kick shooter due to "&c&lHydra &8>> &cCheating"
  336.  
Add Comment
Please, Sign In to add comment