Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 1 second in world "world":
- loop all players:
- if {%loop-player%.bypass} is false:
- if gamemode of loop-player is creative or spectator:
- else:
- 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 2:
- if {%loop-player%.x.move} is more than 0:
- if {%loop-player%.move} is more than 9:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 3:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by superx76)&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 8:
- 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 13 seconds
- remove 1 from {%loop-player%.illegal.move}
- if {%loop-player%.move} is less than -9:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 3:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by superx76)&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 8:
- execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
- wait 13 seconds
- remove 1 from {%loop-player%.illegal.move}
- if {%loop-player%.x.move} is more than -2:
- if {%loop-player%.x.move} is less than 0:
- if {%loop-player%.move} is more than 9:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 3:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by superx76)&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 8:
- execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
- wait 13 seconds
- remove 1 from {%loop-player%.illegal.move}
- if {%loop-player%.move} is less than -9:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 3:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by superx76)&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 8:
- execute console command "/tempban %loop-player% 30 DoggoCheat: You have been caught using speed hacks"
- wait 13 seconds
- remove 1 from {%loop-player%.illegal.move}
- #Secondary Cheat Check
- if {%loop-player%.move} is more than 10.7:
- set {_player} to loop-player
- add 1 to {%loop-player%.illegal.move}
- if {%loop-player%.illegal.move} is more than 3:
- loop all players:
- if {%loop-player-2%.anticheat.message} is true:
- send "&eSpeed (by superx76)&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 8:
- execute console command "/tempban %loop-player% 30 DoggoCheat: You have been caught using speed hacks"
- wait 13 seconds
- remove 1 from {%loop-player%.illegal.move}
- #Reach anticheat
- on damage:
- attacker is a player
- victim is a player
- if attacker is holding a bow:
- 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 superx76)&7- %attacker% &clikely has reach! &3Hit from %{_distance}% blocks away (Normal is 3.6)" to loop-player
- wait 20 seconds
- remove 1 from {%attacker%.illegal.reach}
- #COMMANDSSSSS
- on respawn:
- set {%player%.x} to 0
- set {%player%.x2} to 0
- set {%player%.z} to 0
- set {%player%.z2} to 0
- every 5 seconds in world "world":
- loop all players:
- if {%loop-player%.bypass} is not set:
- set {%loop-player%.bypass} to false
- command /sendanticheat:
- permission: Anticheat.message
- trigger:
- if {%player%.anticheat.message} is false:
- set {%player%.anticheat.message} to true
- send "Enabled anticheat messages"
- if {%player%.anticheat.message} is true:
- set {%player%.anticheat.message} to false
- send "Disabled anticheat messages"
- command /bypass <player>:
- permission: Give.Bypass
- trigger:
- if {%arg 1%.bypass} is true:
- set {%arg 1%.bypass} to false
- send "I have removed %arg 1%'s bypass"
- else if {%arg 1%.bypass} is false:
- 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