Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
-
- every 3 seconds in world "world":
- loop all players:
- if {%loop-player%.bypass} is false:
- if gamemode of loop-player is creative or spectator:
- else:
- if loop-player is not flying:
- set {_player} to loop-player
- #Z movement
- set {_%loop-player%.z2} to loop-player's z-coord
- set {%loop-player%.z.move} to ({_%loop-player%.z2} - {%loop-player%.z})
- set {%loop-player%.z} to loop-player's z-coord
- #X movement
- set {_%loop-player%.x2} to loop-player's x-coord
- set {%loop-player%.x.move} to ({_%loop-player%.x2} - {%loop-player%.x})
- set {%loop-player%.x} to loop-player's x-coord
- #Combine
- if {%loop-player%.z.move} is more than 0:
- if {%loop-player%.x.move} is more than 0:
- set {%loop-player%.move} to {%loop-player%.z.move} + {%loop-player%.x.move}
- if {%loop-player%.x.move} is less than 0:
- set {%loop-player%.move} to {%loop-player%.z.move} - {%loop-player%.x.move}
- if {%loop-player%.z.move} is less than 0:
- if {%loop-player%.x.move} is more than 0:
- set {%loop-player%.move} to {%loop-player%.x.move} - {%loop-player%.z.move}
- if {%loop-player%.x.move} is less than 0:
- set {%loop-player%.z.move} to {%loop-player%.z.move} * -1
- set {%loop-player%.move} to {%loop-player%.z.move} - {%loop-player%.x.move}
- if {%loop-player%.move.2} is the same as {%loop-player%.move}:
- set {%loop-player%.move} to 0
- set {%loop-player%.move.2} to {%loop-player%.move}
- if loop-player is swimming:
- else:
- if loop-player has speed:
- else:
- #Cheat check
- if {%loop-player%.x.move} is less than 6:
- if {%loop-player%.x.move} is more than 0:
- if {%loop-player%.move} is more than 27:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 1:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 1 second" to loop-player-2
- if {%loop-player%.illegal.move} is more than 4:
- execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
- set {%loop-player%.illegal.move} to 0
- set {%loop-player%.move} to 0
- wait 20 seconds
- remove 1 from {%loop-player%.illegal.move}
- if {%loop-player%.move} is less than -27:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 1:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
- if {%loop-player%.illegal.move} is more than 4:
- execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
- wait 20 seconds
- remove 1 from {%loop-player%.illegal.move}
- if {%loop-player%.x.move} is more than -6:
- if {%loop-player%.x.move} is less than 0:
- if {%loop-player%.move} is more than 27:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 1:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
- if {%loop-player%.illegal.move} is more than 4:
- execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
- wait 20 seconds
- remove 1 from {%loop-player%.illegal.move}
- if {%loop-player%.move} is less than -27:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 1:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
- if {%loop-player%.illegal.move} is more than 4:
- execute console command "/tempban %loop-player% 30 DoggoCheat: You have been caught using speed hacks"
- wait 20 seconds
- remove 1 from {%loop-player%.illegal.move}
- #Secondary Cheat Check
- if {%loop-player%.move} is more than 32.1:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 1:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
- if {%loop-player%.illegal.move} is more than 4:
- execute console command "/tempban %loop-player% 30 DoggoCheat: You have been caught using speed hacks"
- wait 20 seconds
- remove 1 from {%loop-player%.illegal.move}
- #Reach anticheat
- on damage:
- attacker is a player
- victim is a player
- damage was caused by projectile:
- else:
- set {_attacker} to location of attacker
- set {_victim} to location of victim
- set {_distance} to the distance between {_victim} and {_attacker}
- if {_distance} is more than 4:
- add 1 to {%attacker%.illegal.reach}
- if {%attacker%.illegal.reach} is more than 8:
- execute console command "/tempban %attacker% 30 DoggoCheat: You have been caught using reach hacks"
- if {%attacker%.illegal.reach} is more than 3:
- loop all players:
- if {%loop-player%.anticheat.message} is true:
- send "&eReach (by ztimhirsch)&7- %attacker% &clikely has reach! &3Hit from %{_distance}% blocks away (Normal is 4 MAX)" to loop-player
- wait 20 seconds
- remove 1 from {%attacker%.illegal.reach}
- on left click:
- add 1 to {%player's uuid%::clicks}
- if {%player's uuid%::clicks} is more than 25:
- if {%player's uuid%::announce::autoclicker} is not set:
- loop all players:
- if loop-player has permission "Click.Notify":
- send "%player% may be using autoclicker! Clicked 25 times in 1 second" to loop-player
- set {%player's uuid%::announce::autoclicker} to true
- wait 1 second
- delete {%player's uuid%::announce::autoclicker}
- add 1 to {%player's uuid%::illegalclicks}
- if {%player's uuid%::illegalclicks} is more than 3:
- execute console command "/tempban %player% 30 &aDoggoCheat&7: You have been banned for using a autoclicker!"
- wait 6 seconds
- remove 1 from {%player's uuid%::illegalclicks}
- wait 1 second
- remove 1 from {%player's uuid%::clicks}
- #COMMANDSSSSS
- on respawn:
- set {%player%.x} to 0
- set {%player%.x2} to 0
- set {%player%.z} to 0
- set {%player%.z2} to 0
- command /sendanticheat:
- permission: anticheat.messages
- trigger:
- if {%player%.anticheat.message} is not set:
- set {%player%.anticheat.message} to true
- send "Enabled anticheat messages"
- else if {%player%.anticheat.message} is false:
- set {%player%.anticheat.message} to true
- send "Enabled anticheat messages"
- else if {%player%.anticheat.message} is true:
- set {%player%.anticheat.message} to false
- send "Disabled anticheat messages"
- command /bypass <player>:
- permission: bypass.anticheat
- trigger:
- if {hasrank.%player's uuid%} is true:
- send "hi"
- if {%arg 1%.bypass} is true:
- set {%arg 1%.bypass} to false
- send "I have removed %arg 1%'s bypass"
- else:
- set {%arg 1%.bypass} to true
- send "I have given %arg 1% bypass"
- on join:
- if {%player%.bypass} is not set:
- set {%player%.bypass} to false
- set {%player%.send} to true
Add Comment
Please, Sign In to add comment