Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Hydra AntiCheat from the developers of WASP AntiCheat know as xXPureLifeXx#4033, _LkZ#9628
- # Detections: Killaura, Fly, Speed, Reach, Self Hurt (More Coming Soon)
- # Main Developer: _LkZ
- # Developer: xXPureLifeXx
- options: # DO NOT CHANGE (COULD HURT ANTICHEAT)
- version: 1.0
- noPermission: &c&lHydra &8>> &4No Permissions
- command /hydra [<text>] [<offline player>]:
- permission: hydra.command.command
- permission message: {@noPermission}
- trigger:
- if arg 1 is not set:
- send "&c&lHydra &8>> &c/hydra help"
- if arg 1 is "help":
- send "&c&lHydra AntiCheat. &fMade by _LkZ, and xXPureLifeXx"
- send "&c/hydra help"
- send "&c/hydra freeze <player>"
- send "&c/hydra alerts <player>"
- if arg 1 is "freeze":
- if arg 2 is set:
- if player has permission "hydra.command.freeze":
- if {freezed.%arg 2%} is false:
- set {freezed.%arg 2%} to true
- send "&c&lHydra &8>> &c%arg 2%&f is now frozen!"
- else:
- set {freezed.%arg 2%} to false
- send "&c&lHydra &8>> &c%arg 2% is no longer frozen!"
- else:
- send "{@noPermission}"
- if arg 1 is "alerts":
- if arg 2 is set:
- if player has permission "hydra.command.logs":
- send "&cAuto Clicker Logs: %{autoclickerlogs.%arg 2%}%"
- send "&cKillaura logs: %{killauralogs.%arg 2%}%"
- send "&cSpeed / Flight Logs: %{speedalerts.%arg 2%}%"
- send "&cReach Logs: %{reachalerts.%arg 2%}%"
- send "&cAnti Knockback Logs: %{antikbalerts.%arg 2%}%"
- else:
- send "{@noPermission}"
- else:
- send "&c&lHydra &8>> &cPlease specify a player!"
- on load:
- if {chatcooldown} is not set:
- set {chatcooldown} to 3
- every 30 seconds:
- loop all players:
- delete {alerts.%loop-player%}
- on left click:
- add 1 to {killaura.%player%}
- if {killaura.%player%} >= 20:
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player%&f has failed Auto Clicking (&c%{_ping}%&c MS&f) (%{killaura.%player%}%&c&l CPS" to loop-player
- add 1 to {autoclickerlogs.%player%}
- execute console command "auratest %player%"
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- on left click:
- add 1 to {clickauratest.%player%}
- if {clickauratest.%player%} >= 13:
- execute console command "auratest %player%"
- every 1 second:
- loop all players:
- clear {clickauratest.%loop-player%}
- every 1 second:
- loop all players:
- clear {killaura.%loop-player%}
- command /ka [<text>]:
- trigger:
- if {invtget.%player%} is true:
- if arg 1 is "<none>":
- add 1 to {invt.%player%}
- if {invt.%player%} > 3:
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player% has failed &cInvalid Target&f. (&c%{_ping}%&f)"
- add 1 to {killauralogs.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- execute console command "auratest %player%"
- else:
- stop
- on damage:
- set {invtget.%attacker%} to true
- wait 2 ticks
- set {invtget.%attacker%} to false
- on left click:
- if {invtget.%player%} is true:
- make player execute command "ka %targeted entity%"
- on damage:
- add 1 to {hits.%attacker%}
- on left click:
- add 1 to {leftclicks.%player%}
- on death:
- if {hits.%attacker%} = {leftclicks.%attacker%}:
- execute console command "auratest %attacker%"
- command /auratest [<player>]:
- permission: hydra.command.auratest
- permission message: &c&lHydra >> No Permissions
- trigger:
- if {auratest.%arg 1%} is false:
- set {loc} to location behind arg 1
- set {attacker} to arg 1
- set {auratest.%arg 1%} to true
- spawn a zombie at {loc}
- set {bot} to last spawned entity
- wait 5 ticks
- set {auratest.%arg 1%} to false
- delete last spawned entity
- on damage:
- if attacker is {attacker}:
- if victim is {bot}:
- delete {bot}
- loop all players:
- loop-player has permission "hydra.logs":
- set {_ping} to attacker's ping
- send "&c&lHydra &r&8>> &c%attacker%&f has failed KillAura. (&c%{_ping}%&c MS&f)" to loop-player
- add 1 to {killauralogs.%attacker%}
- add 1 to {alerts.%attacker%}
- if {alerts.%attacker%} >= 10:
- execute console command "kick %attacker% &c&lHydra &8>> &cCheating"
- else:
- if victim is {bot}:
- cancel event
- on any move:
- player is not flying
- player's gamemode is not creative
- block below player is air
- block north below player is air
- block south below player is air
- block west below player is air
- block east below player is air
- block north east below player is air
- block south east below player is air
- block north west below player is air
- block south west below player is air
- the gliding state of player is true:
- player's chestplate is elytra:
- stop
- set {fly.%player%} to 0
- else:
- set {ylocation.%player%} to the y location of player
- set {flysetback.%player%} to location of the player
- wait 10 ticks seconds
- set {ylocation2.%player%} to the y location of player
- wait 1 tick
- if difference between {ylocation.%player%} and {ylocation2.%player%} = 0:
- add 1 to {fly.%player%}
- if {fly.%player%} > 4:
- teleport player to {flysetback.%player%}
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player%&f has failed Flight. (&c%{_ping}%&c MS&f)" to loop-player
- add 1 to {speedalerts.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- every 2 seconds:
- loop all players:
- delete {fly.%loop-player%}
- on flight toggle:
- if {speedcheck.%player%} is true:
- set {speedcheck.%player%} to false
- else:
- wait 15 seconds
- set {speedcheck.%player%} to true
- on any move:
- player's gamemode is not creative
- player is not flying
- set {y.%player%} to the y location of player
- set {ysetback.%player%} to location of the player
- wait 5 ticks
- set {y1.%player%} to the y location of player
- wait 1 tick
- set {_diffyy.%player%} to difference between {y.%player%} and {y1.%player%}
- wait 1 tick
- if {_diffyy.%player%} >= 2:
- set {_ping} to player's ping
- teleport player to {ysetback.%player%}
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player% has failed Y-Fly. (&c%{_ping}%&c MS&f)." to loop-player
- on any move:
- player doesn't have speed
- if {speedcheck.%player%} is true:
- set {_loc.%player%} to the x location of player
- set {speedsetback.%player%} to location of the player
- wait 5 ticks
- set {_loc1.%player%} to the x location of player
- wait 1 tick
- set {_diffyx.%player%} to difference between {_loc.%player%} and {_loc1.%player%}
- if difference between {_loc.%player%} and {_loc1.%player%} >= 3.85:
- player's gamemode is not creative
- player is not flying
- add 1 to {speed.%player%}
- if {speed.%player%} >= 3:
- teleport player to {speedsetback.%player%}
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player% &fhas failed Speed Hacks. (&c%{_ping}%&c MS&f) (&c%{_diffyx.%player%}% Blocks Per Second)." to loop-player
- add 1 to {speedalerts.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- on any move:
- player doesn't have speed
- if {speedcheck.%player%} is true:
- set {_locz.%player%} to the z location of player
- set {speedsetback.%player%} to location of the player
- wait 5 ticks
- set {_loc1z.%player%} to the z location of player
- wait 1 tick
- set {_diffy.%player%} to difference between {_locz.%player%} and {_loc1z.%player%}
- if difference between {_locz.%player%} and {_loc1z.%player%} >= 3.85:
- player's gamemode is not creative
- player is not flying
- add 1 to {speed.%player%}
- if {speed.%player%} >= 3:
- teleport player to {speedsetback.%player%}
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player% &fhas failed Speed Hacks. (&c%{_ping}%&c MS&f) (&c%{_diffy.%player%}%&c Blocks Per Second&f)." to loop-player
- add 1 to {speedalerts.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- on damage:
- set {_reach} to distance between attacker and victim
- if {_reach} > 4:
- if damage cause is not a projectile:
- attacker's gamemode is not creative:
- cancel event
- set {_ping} to attacker's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%attacker% &fhas failed &cReach&f. (&c%{_ping}%&c MS&f)." to loop-player
- add 1 to {reachalerts.%attacker%}
- on damage:
- if attacker is victim:
- if damage cause is not a projectile:
- cancel event
- set {_ping} to attacker's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%attacker% &fhas failed Self Hurt. (&c%{_ping}%&c MS)" to loop-player
- on damage of a player:
- victim is not flying
- damage wasn't caused by fall, potion, lava, burning, fire, poison or wither
- victim is not burning
- victim doesn't have poison
- victim doesn't have wither:
- set {antikb.%victim%} to location of victim
- wait 10 ticks
- set {antikb2.%victim%} to location of victim
- block at victim is not cobweb:
- block at victim is not water:
- victim is not riding:
- if {antikb.%victim%} = {antikb2.%victim%}:
- set {_ping} to victim's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%victim% has been detected using &cAnti Knockback&f. (&c%{_ping}%&c MS&f)." to loop-player
- add 1 to {alerts.%victim%}
- add 1 to {antikbalerts.%victim%}
- if {alerts.%victim%} >= 10:
- execute console command "kick %victim% &c&lHydra &8>> &cCheating"
- on chat:
- wait 1 tick
- set {chatcooldown.%player%} to true
- wait 3 seconds
- set {chatcooldown.%player%} to false
- on chat:
- if {chatcooldown.%player%} is true:
- if player does not have permission "hydra.chat.cooldown.bypass":
- cancel event
- send "&cThere is a 3 second delay between chatting!"
- on shoot:
- if projectile is an arrow:
- if difference between {bow.%shooter%} and now is less than 2 ticks:
- cancel event
- set {_ping} to shooters ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%shooter% has been detected using &cFast Bow&f. (&c%{_ping%}% &cMS&f)." to loop-player
- add 1 to {alerts.%shooter%}
- add 1 to {fastbowalerts.%shooter%}
- if {alerts.%victim%} >= 10:
- execute console command "kick %shooter% &c&lHydra &8>> &cCheating"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement