Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #======================================================#
- # The Overseer - The Anti Cheat God #
- # Do not touch anything, all of this is valuable data. #
- # #
- #------------------------------------------------------#
- # #
- # Project started on 9/17/17 #
- # LAST UPDATE ON: 9/25/17 at 5:42 PM #
- # #
- #------------------------------------------------------#
- # # _____
- # Note to user: This skript is written with skript # / _ \ \
- # variables, so your server MAY crash with this. A # | / \ | \ \
- # simple fix of this server crash is to delete the # | O | ) | |
- # variables file in plugins/skript/. To warn you, this # | \_/ | / /
- # Skript is one of my first few major projects, and # \_____/ /
- # I wish to make this anticheat better with #
- # absolutely no skript variables. The checkings are #
- # also in progress, if you feel as you want to change #
- # something, feel free to, but be warned that you may #
- # very well mess up, and all problems are not to be #
- # in fault of JTNCrafter and JTNStudios. #
- # #
- # If you need help, go to the website in which you #
- # found this resource, if you can, also try #
- # '/overseer' or '/overseer help' #
- # #
- #------------------------------------------------------#
- # ________________________ #
- # / \ #
- # Other notes to take! #
- # \________________________/ #
- # #
- # The anticheat may not be 100% cheat-proof, but it #
- # the anticheat will help you find hackers! #
- # #
- #------------------------------------------------------#
- # Made by JTNStudios (C) #
- # Skript written by JTNCrafter #
- #======================================================#
- #================================================================================================#
- # The Overseer Command! (Added 9/18/17) #
- #================================================================================================#
- command /overseer [<text>] [<player>] [<text>]:
- permission: overseer.admin
- permission message: You can't use that here! Type '/help' for help.
- description: The Overseer Anticheat by: JTNCrafter!
- aliases: /os
- trigger:
- if arg 1 is set:
- if arg 1 is "clear":
- if arg 2 is set:
- if arg 3 is set:
- if arg 3 is "killaura" or "ka":
- set {kavio.%arg 2%} to 0
- message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Kill Aura Violations have been reset!" to player
- if arg 3 is "fastclick":
- set {fcvio.%arg 2%} to 0
- message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Fast Click Violations have been reset!" to player
- if arg 3 is "speed":
- set {spvio.%arg 2%} to 0
- message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Speed Violations have been reset!" to player
- if arg 3 is "flight":
- set {fvio.%arg 2%} to 0
- message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Flight Violations have been reset!" to player
- if arg 3 is "jesus":
- set {jvio.%arg 2%} to 0
- message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Jesus Violations have been reset!" to player
- if arg 3 is "antikb" or "antiknockback":
- set {akvio.%arg 2%} to 0
- message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Anti Knockback Violations have been reset!" to player
- else:
- message "&9The Overseer> &7You need to specify a hack!" to player
- message "&9The Overseer> &7'Do /overseer clear <player> <hack>'" to player
- else:
- message "&9The Overseer> &7You need to specify a player!" to player
- message "&9The Overseer> &7'Do /overseer clear <player> <hack>'" to player
- message "&c/overseer check <player> <hack>" to player
- message "&c/overseer clear <player> <hack>" to player
- else if arg 1 is "toggledetection":
- if arg 3 is set:
- if arg 3 is "killaura" or "ka":
- if {os.ka} is true:
- set {os.ka} to false
- message "&9The Overseer> &c&lKill Aura&r&7 is now not detecting!" to player
- else:
- set {os.ka} to true
- message "&9The Overseer> &c&lKill Aura&r&7 is now detecting!" to player
- else if arg 3 is "speed":
- if {os.sp} is true:
- set {os.sp} to false
- message "&9The Overseer> &c&lSpeed&r&7 is now not detecting!" to player
- else:
- set {os.sp} to true
- message "&9Overseer> &c&lSpeed&r&7 is now detecting!" to player
- else if arg 3 is "flight":
- if {os.fl} is true:
- set {os.fl} to false
- message "&9The Overseer> &c&lFlight&r&7 is now not detecting!" to player
- else:
- set {os.fl} to true
- message "&9The Overseer> &c&lFlight&r&7 is now detecting!" to player
- else if arg 3 is "jesus":
- if {os.je} is true:
- set {os.je} to false
- message "&9The Overseer> &c&lJesus&r&7 is now not detecting!" to player
- else:
- set {os.je} to true
- message "&9The Overseer> &c&lJesus&r&7 is now detecting!" to player
- else if arg 3 is "fastclick":
- if {os.fc} is true:
- set {os.fc} to false
- message "&9The Overseer> &c&lFast Click&r&7 is now not detecting!" to player
- else:
- set {os.fc} to true
- message "&9The Overseer> &c&lFast Click&r&7 is now detecting!" to player
- else if arg 3 is "antikb" or "antiknockback":
- if {os.akb} is true:
- set {os.akb} to false
- message "&9The Overseer> &c&lAnti-Knockback&r&7 is now not detecting!" to player
- else:
- set {os.akb} to true
- message "&9The Overseer> &c&lAnti-Knockback&r&7 is now detecting!" to player
- else:
- message "&9Overseer> &7You need to specify a hack!" to player
- message "&9Overseer> &7'Do /overseer clear <player> <hack>'" to player
- else if arg 1 is "clearall":
- if arg 2 is set:
- set {kavio.%arg 2%} to 0
- set {spvio.%arg 2%} to 0
- set {fvio.%arg 2%} to 0
- set {jvio.%arg 2%} to 0
- set {akvio.%arg 2%} to 0
- set {fcvio.%arg 2%} to 0
- message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Violations have been fully reset!" to player
- else:
- message "&9The Overseer> &7You need to specify a player!" to player
- message "&9The Overseer> &7'Do /overseer clearall <player>'" to player
- else if arg 1 is "detectall":
- set {os.ka} to true
- set {os.sp} to true
- set {os.fl} to true
- set {os.je} to true
- set {os.akb} to true
- set {os.fc} to true
- message "&9The Overseer> &c&lAll Hacks&r&7 are now detecting!" to player
- else if arg 1 is "undetectall":
- set {os.ka} to false
- set {os.sp} to false
- set {os.fl} to false
- set {os.je} to false
- set {os.akb} to false
- set {os.fc} to false
- message "&9The Overseer> &c&lAll Hacks&r&7 are now not detecting!" to player
- else if arg 1 is "help":
- message "&5&l&m===============&8[&r&a&lThe &4&lOverseer&r&8]&5&l&m===============" to player
- message " " to player
- message "&a&lOverseer Commands (Full Page)" to player
- message " " to player
- message "&c/osinfo <player>" to player
- message "&c/osdetection" to player
- message "&c/overseer clear <player> <hack>" to player
- message "&c/overseer clearall <player>" to player
- message "&c/overseer toggledetection <hack>" to player
- message "&c/overseer detectall" to player
- message "&c/overseer undetectall" to player
- message "&c/overseer notify <player>" to player
- message "&c/osunban <player> - Unban a Overseer Banned Player!" to player
- message "&c/overseer help (Shows This Page)" to player
- message " " to player
- message "&5&l&m===========================================" to player
- else if arg 1 is "toggleban":
- if {os.ban} is true:
- set {os.ban} to false
- message "&9The Overseer> &7Overseer will now &c&lNOT&r&7 ban hackers!" to player
- else:
- set {os.ban} to true
- message "&9The Overseer> &7Overseer will now &c&lBAN&r&7 hackers!" to player
- else if arg 1 is "notification" or "notify":
- if arg 2 is set:
- if {osadmin.%arg 2%} is true:
- set {osadmin.%arg 2%} to false
- message "&9The Overseer> &7The player will not be notified about hacks!" to player
- else:
- set {osadmin.%arg 2%} to true
- message "&9The Overseer> &7The player will be notified about hacks!" to player
- else:
- message "&9The Overseer> &7You need to specify a player!" to player
- message "&9The Overseer> &7'Do /overseer notification <player>'" to player
- else if arg 1 is "reload":
- execute console command "sk reload Overseer"
- execute console command "sk reload OS"
- message "&9The Overseer> &7Reload Complete."
- else:
- message "&5&l&m===============&8[&r&a&lThe &4&lOverseer&r&8]&5&l&m===============" to player
- message " " to player
- message "&a&lOverseer Version: &6&l(Phase 2/3)" to player
- message "&a&lCreator: &6&lJTNCrafter"
- message " " to player
- message "&5&l&m===========================================" to player
- message " " to player
- message "&a&lLast Update: 9/25/17 at 5:42 PM"
- message " " to player
- message "&5&l&m===========================================" to player
- message " " to player
- message "&a&lOverseer Commands (Basic)" to player
- message "&c/osinfo <player>" to player
- message "&c/overseer clear <player> <hack>" to player
- message "&c/overseer clearall <player>" to player
- message "&c/overseer toggledetection <hack>" to player
- message "&c/osunban <player> - Unban a Overseer Banned Player!" to player
- message "&c/overseer help (Shows All Commands)" to player
- message " " to player
- message "&5&l&m===========================================" to player
- #================================================================================================#
- # Overseer Info Command (Added 9/25/17) #
- #================================================================================================#
- command /osinfo [<player>] [<offlineplayer>]:
- permission: overseer.info
- permission message: Unknown Command. Type '/help' for help.
- aliases: /overseerinfo
- trigger:
- if arg 1 is set:
- open chest with 3 rows named "&8[&2&lOverseer&r&8] &c&l%arg 1%" to player
- format slot 0 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 1 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 2 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 3 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 4 of player with skull of the arg 1 named "&c&l%arg 1%&r&c&l's Skull" with lore " " to close then run " "
- format slot 5 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 6 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 7 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 8 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 10 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 12 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 14 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 19 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 21 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 23 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 16 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 25 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 9 of player with iron sword named "&4&lFast Click" with lore "&c&lViolations: &2&l%{fcvio.%arg 1%}%&r&c&l!" to close then run " "
- format slot 18 of player with tnt named "&5&lDelete Fast Click Violations!" with lore " " to close then run "os clear %arg 1% FastClick"
- format slot 11 of player with diamond sword named "&4&lKill Aura" with lore "&c&lViolations: &2&l%{kavio.%arg 1%}%&r&c&l!" to close then run " "
- format slot 20 of player with tnt named "&5&lDelete Kill Aura Violations!" with lore " " to close then run "os clear %arg 1% KillAura"
- format slot 13 of player with feather named "&4&lFlight" with lore "&c&lViolations: &2&l%{fvio.%arg 1%}%&r&c&l!" to close then run " "
- format slot 22 of player with tnt named "&5&lDelete Flight Violations!" with lore " " to close then run "os clear %arg 1% Flight"
- format slot 15 of player with leather boots named "&4&lSpeed" with lore "&c&lViolations: &2&l%{spvio.%arg 1%}%&r&c&l!" to close then run " "
- format slot 24 of player with tnt named "&5&lDelete Speed Violations!" with lore " " to close then run "os clear %arg 1% Speed"
- format slot 17 of player with iron block named "&4&lAnti Knockback" with lore "&c&lViolations: &2&l%{akvio.%arg 1%}%&r&c&l!" to close then run " "
- format slot 26 of player with tnt named "&5&lDelete Anti Knockback Violations!" with lore " " to close then run "os clear %arg 1% AntiKb"
- if arg 2 is set:
- open chest with 3 rows named "&8[&2&lOverseer&r&8] &c&l%arg 2%" to player
- format slot 0 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 1 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 2 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 3 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 4 of player with barrier named "&c&l%arg 2%" with lore " " to close then run " "
- format slot 5 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 6 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 7 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 8 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 10 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 12 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 14 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 19 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 21 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 23 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 16 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 25 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 9 of player with iron sword named "&4&lFast Click" with lore "&c&lViolations: &2&l%{fcvio.%arg 2%}%&r&c&l!" to close then run " "
- format slot 18 of player with tnt named "&5&lDelete Fast Click Violations!" with lore " " to close then run "os clear %arg 2% FastClick"
- format slot 11 of player with diamond sword named "&4&lKill Aura" with lore "&c&lViolations: &2&l%{kavio.%arg 2%}%&r&c&l!" to close then run " "
- format slot 20 of player with tnt named "&5&lDelete Kill Aura Violations!" with lore " " to close then run "os clear %arg 2% KillAura"
- format slot 13 of player with feather named "&4&lFlight" with lore "&c&lViolations: &2&l%{fvio.%arg 2%}%&r&c&l!" to close then run " "
- format slot 22 of player with tnt named "&5&lDelete Flight Violations!" with lore " " to close then run "os clear %arg 2% Flight"
- format slot 15 of player with leather boots named "&4&lSpeed" with lore "&c&lViolations: &2&l%{spvio.%arg 2%}%&r&c&l!" to close then run " "
- format slot 24 of player with tnt named "&5&lDelete Speed Violations!" with lore " " to close then run "os clear %arg 2% Speed"
- format slot 17 of player with iron block named "&4&lAnti Knockback" with lore "&c&lViolations: &2&l%{akvio.%arg 2%}%&r&c&l!" to close then run " "
- format slot 26 of player with tnt named "&5&lDelete Anti Knockback Violations!" with lore " " to close then run "os clear %arg 2% AntiKb"
- #================================================================================================#
- # Overseer Detection Command (Added 9/25/17) #
- #================================================================================================#
- command /osdetection:
- permission: overseer.detect
- permission message: Unknown Command. Type '/help' for help.
- aliases: /overseerdetection
- trigger:
- open chest with 1 row named "&8[&2&lOverseer&r&8] &c&lToggle Options" to player
- format slot 0 of player with emerald block named "&2&lDetect All Hacks!" with lore " " to close then run "os detectall"
- format slot 1 of player with gray stained glass pane named " " with lore " " to close then run " "
- if {os.fc} is true:
- format slot 2 of player with green stained glass pane named "&5&lToggle Fast Click" with lore "Setting is ON!" to close then run "os toggledetection FastClick"
- else:
- format slot 2 of player with red stained glass pane named "&5&lToggle Fast Click" with lore "Setting is OFF!" to close then run "os toggledetection FastClick"
- if {os.ka} is true:
- format slot 3 of player with green stained glass pane named "&5&lToggle Kill Aura" with lore "Setting is ON!" to close then run "os toggledetection KillAura"
- else:
- format slot 3 of player with red stained glass pane named "&5&lToggle Kill Aura" with lore "Setting is OFF!" to close then run "os toggledetection KillAura"
- if {os.fl} is true:
- format slot 4 of player with green stained glass pane named "&5&lToggle Flight" with lore "Setting is ON!" to close then run "os toggledetection Flight"
- else:
- format slot 4 of player with red stained glass pane named "&5&lToggle Flight" with lore "Setting is OFF!" to close then run "os toggledetection Flight"
- if {os.sp} is true:
- format slot 5 of player with green stained glass pane named "&5&lToggle Speed" with lore "Setting is ON!" to close then run "os toggledetection Speed"
- else:
- format slot 5 of player with red stained glass pane named "&5&lToggle Speed" with lore "Setting is OFF!" to close then run "os toggledetection Speed"
- if {os.akb} is true:
- format slot 6 of player with green stained glass pane named "&5&lToggle Anti Knockback" with lore "Setting is ON!" to close then run "os toggledetection AntiKb"
- else:
- format slot 6 of player with red stained glass pane named "&5&lToggle Anti Knockback" with lore "Setting is OFF!" to close then run "os toggledetection AntiKb"
- format slot 7 of player with gray stained glass pane named " " with lore " " to close then run " "
- format slot 8 of player with redstone block named "&c&lUndetect All Hacks!" with lore " " to close then run "os undetectall"
- #================================================================================================#
- # Overseer Unban Command (Added 9/20/17) #
- #================================================================================================#
- command /osunban <offlineplayer>:
- permission: overseer.unban
- permission message: Unknown Command. Type '/help' for help.
- trigger:
- if arg 1 is set:
- set {osbanned.%arg 1%} to false
- message "&9The Overseer> &c&l%arg 1%&r&7 is now unbanned from &2&lThe Overseer&r&7!" to player
- else:
- message "&9The Overseer> &7You need to specify a player!" to player
- message "&9The Overseer> &7'Do /overseer unban <player>'" to player
- #================================================================================================#
- # Ban Effect (Added 9/20/17) #
- #================================================================================================#
- command /osban <player> <text>:
- permission: overseer.ban
- permission message: Unknown Command. Type '/help' for help.
- trigger:
- if {os.ban} is true:
- set {_ostp} to arg 1's location
- set {_osban} to "%arg 1%"
- teleport arg 1 to {_ostp}
- send "&9The Overseer>&7 I see... a hacker! It's &c&l%arg 1%" to all players
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- send "&9The Overseer>&7 Goodbye &c&l%arg 1%&r&7!" to all players
- wait 20 ticks
- teleport arg 1 to {_ostp}
- execute console command "osremove %{_osban}% %arg 2%"
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- wait 20 ticks
- teleport arg 1 to {_ostp}
- #================================================================================================#
- # Ban Command (Added 9/20/17) #
- #================================================================================================#
- command /osremove [<player>] [<offlineplayer>] <text>:
- permission: overseer.ban
- permission message: Unknown Command. Type '/help' for help.
- trigger:
- if arg 1 is set:
- kick arg 1 due to "&c&lYou were banned by &2&lThe Overseer&r&c&l for: &4&l%arg 3%"
- set {osbanned.%arg 1%} to true
- set {osbannedr.%arg 1%} to "%arg 3%"
- if arg 2 is set:
- kick arg 2 due to "&c&lYou were banned by &2&lThe Overseer&r&c&lfor: &4&l%arg 3%"
- set {osbanned.%arg 2%} to true
- set {osbannedr.%arg 2%} to "%arg 3%"
- #================================================================================================#
- # Ban out of the server! (Added 9/20/17) #
- #================================================================================================#
- on join:
- if {osbanned.%player%} is true:
- kick the player due to "&c&lYou were banned by &2&lThe Overseer&r&c&l for: &4&l%{osbannedr.%player%}%"
- #================================================================================================#
- # Fast Clicking (COMPLETE) (Added 9/22/17)
- #================================================================================================#
- on left click:
- add 1 to {clicks.%player%}
- every second:
- loop all players:
- if {os.fc} is true:
- #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
- if {clicks.%loop-player%} is greater than 12:
- loop all players:
- if {osadmin.%loop-player-2%} is true:
- add 1 to {fcvio.%loop-player-1%}
- send "&9The Overseer> &c&l%loop-player-1%&r&7 is suspected of &c&lFast-Click [%{fcvio.%loop-player-1%}%&c&l]&r&7!" to loop-player-2
- wait 1 tick
- if {fcvio.%loop-player-1%} is greater than 2:
- execute console command "osban %loop-player-1% Fast-Click"
- set {clicks.%loop-player%} to 0
- #================================================================================================#
- # Kill Aura (COMPLETE) (Added 9/18/17) #
- #================================================================================================#
- on damage of a player:
- if {os.ka} is true:
- #attacker is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
- if attacker is a player:
- if victim is a player:
- if damage is caused by a projectile:
- wait 3 ticks
- else:
- if attacker's gamemode is survival or adventure:
- set {_ka} to distance between attacker and victim
- if {_ka} is greater than 5:
- add 1 to {kavio.%attacker%}
- loop all players:
- if {osadmin.%loop-player%} is true:
- send "&9The Overseer> &c&l%attacker%&r&7 is suspected of &c&lKillAura [%{kavio.%attacker%}%&c&l]&r&7!" to loop-player
- if {kavio.%attacker%} is greater than 2:
- execute console command "osban %attacker% KillAura"
- #================================================================================================#
- # Water/Lava Walk / Jesus (COMPLETED) (Added 9/19/17) #
- #================================================================================================#
- every 2 seconds:
- if {os.je} is true:
- loop all players:
- #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
- loop-player is not flying
- loop-player is not riding
- loop-player doesn't have jump boost
- loop-player is not sneaking
- loop-player is alive
- set {_y} to loop-player's altitude
- wait 2 ticks
- if {_y} is greater than y-coordinate of loop-player:
- wait 3 ticks
- else:
- if block 0.1 below loop-player is stationary water or stationary lava:
- set {_jnf.%loop-player%} to true
- set {_bpos} to block at loop-player
- set {_bposup} to block above {_bpos}
- set {_bpos2} to block under {_bpos}
- set {_buu} to block under {_bpos2}
- set {_bn} to block north of {_bpos2}
- set {_bw} to block west of {_bpos2}
- set {_bs} to block south of {_bpos2}
- set {_be} to block east of {_bpos2}
- set {_bne} to block east of {_bn}
- set {_bse} to block east of {_bs}
- set {_bnw} to block west of {_bn}
- set {_bsw} to block west of {_bs}
- set {_bnu} to block under {_bn}
- set {_bwu} to block under {_bw}
- set {_bsu} to block under {_bs}
- set {_beu} to block under {_be}
- set {_bneu} to block under {_bne}
- set {_bseu} to block under {_bse}
- set {_bnwu} to block under {_bnw}
- set {_bswu} to block under {_bsw}
- if {_bn} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bpos} is stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bposup} is stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_be} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bs} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bw} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bne} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bse} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bsw} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bnw} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bnu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_beu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bsu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bwu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bneu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bseu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bswu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_bnwu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- else if {_buu} is not air, stationary water or stationary lava:
- set {_jnf.%loop-player%} to false
- wait 1 tick
- if {_jnf.%loop-player%} is true:
- add 1 to {jvio.%loop-player%}
- loop all players:
- if {osadmin.%loop-player-2%} is true:
- send "&9The Overseer> &c&l%loop-player-1%&r&7 is suspected of &c&lJesus [%{jvio.%loop-player-1%}%&c&l]&r&7!" to loop-player-2
- if {jvio.%loop-player%} is greater than 2:
- execute console command "osban %loop-player% Jesus"
- else:
- #message "&9Overseer> &7Jesus not found." to all players
- #================================================================================================#
- # Flight (COMPLETED) (Added 9/19/17) #
- #================================================================================================#
- every second:
- if {os.fl} is true:
- loop all players:
- if loop-player's gamemode is survival or adventure:
- #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
- loop-player's flight mode is false
- loop-player isn't riding
- loop-player doesn't have jump boost
- loop-player is not flying
- block below loop-player is not a ladder
- block in front of loop-player is not a ladder
- set {_y} to loop-player's altitude
- add 1 to {_y}
- wait 2 ticks
- if {_y} is greater than y-coordinate of loop-player:
- wait 3 ticks
- else:
- if block 0.1 below loop-player is air:
- set {_nf.%loop-player%} to true
- set {_bpos} to block at loop-player
- set {_bposup} to block above {_bpos}
- set {_bposupup} to block above {_bposup}
- set {_bposupw} to block west of {_bposup}
- set {_bposupe} to block east of {_bposup}
- set {_bposupn} to block north of {_bposup}
- set {_bposups} to block south of {_bposup}
- set {_bpos2} to block under {_bpos}
- set {_buu} to block under {_bpos2}
- set {_bn} to block north of {_bpos2}
- set {_bw} to block west of {_bpos2}
- set {_bs} to block south of {_bpos2}
- set {_be} to block east of {_bpos2}
- set {_bne} to block east of {_bn}
- set {_bse} to block east of {_bs}
- set {_bnw} to block west of {_bn}
- set {_bsw} to block west of {_bs}
- set {_bnu} to block under {_bn}
- set {_bwu} to block under {_bw}
- set {_bsu} to block under {_bs}
- set {_beu} to block under {_be}
- set {_bneu} to block under {_bne}
- set {_bseu} to block under {_bse}
- set {_bnwu} to block under {_bnw}
- set {_bswu} to block under {_bsw}
- if {_bn} is not air:
- set {_nf.%loop-player%} to false
- else if {_be} is not air:
- set {_nf.%loop-player%} to false
- else if {_bs} is not air:
- set {_nf.%loop-player%} to false
- else if {_bw} is not air:
- set {_nf.%loop-player%} to false
- else if {_bne} is not air:
- set {_nf.%loop-player%} to false
- else if {_bse} is not air:
- set {_nf.%loop-player%} to false
- else if {_bsw} is not air:
- set {_nf.%loop-player%} to false
- else if {_bnw} is not air:
- set {_nf.%loop-player%} to false
- else if {_bnu} is not air:
- set {_nf.%loop-player%} to false
- else if {_beu} is not air:
- set {_nf.%loop-player%} to false
- else if {_bsu} is not air:
- set {_nf.%loop-player%} to false
- else if {_bwu} is not air:
- set {_nf.%loop-player%} to false
- else if {_bneu} is not air:
- set {_nf.%loop-player%} to false
- else if {_bseu} is not air:
- set {_nf.%loop-player%} to false
- else if {_bswu} is not air:
- set {_nf.%loop-player%} to false
- else if {_bnwu} is not air:
- set {_nf.%loop-player%} to false
- else if {_buu} is not air:
- set {_nf.%loop-player%} to false
- else if {_bposupw} is cobweb:
- set {_nf.%loop-player%} to false
- else if {_bposupe} is cobweb:
- set {_nf.%loop-player%} to false
- else if {_bposupn} is cobweb:
- set {_nf.%loop-player%} to false
- else if {_bposups} is cobweb:
- set {_nf.%loop-player%} to false
- else if {_bposup} is cobweb:
- set {_nf.%loop-player%} to false
- else if {_bposupup} is cobweb:
- set {_nf.%loop-player%} to false
- wait 1 tick
- if {_nf.%loop-player%} is true:
- add 1 to {fvio.%loop-player%}
- loop all players:
- if {osadmin.%loop-player-2%} is true:
- send "&9The Overseer> &c&l%loop-player-1%&r&7 is suspected of &c&lFlight [%{fvio.%loop-player-1%}%&c&l]&r&7!" to loop-player-2
- if {fvio.%loop-player%} is greater than 2:
- execute console command "osban %loop-player% Flight"
- else:
- #message "&9The Overseer> &7Flight not found." to all players
- #================================================================================================#
- # Speed / Teleport / Flight (COMPLETE) (Added 9/18/17) #
- #================================================================================================#
- on teleport:
- set {tp.%player%} to true
- wait 3 seconds
- set {tp.%player%} to false
- every 3 seconds:
- if {os.sp} is true:
- loop all players:
- #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
- if {speedable} is false:
- wait 3 ticks
- else:
- loop-player's gamemode is survival or adventure
- loop-player is not flying
- loop-player is alive
- loop-player's walk speed is less than 0.4
- loop-player's fly speed is less than 0.4
- loop-player is not riding
- loop-player doesn't have speed
- set {_y} to loop-player's altitude
- set {speedable} to true
- wait 2 ticks
- if {_y} is greater than y-coordinate of loop-player:
- wait 3 ticks
- else:
- if {tp.%loop-player%} is false:
- set {_pos1.%loop-player%} to loop-player's location
- wait 1 second
- loop-player is not riding
- if distance between {_pos1.%loop-player%} and location of loop-player is greater than 11:
- if {speedable} is true:
- add 1 to {spvio.%loop-player%}
- loop all players:
- if {osadmin.%loop-player-2%} is true:
- send "&9The Overseer> &c&l%loop-player-1%&r&7 is suspected of &c&lSpeed Related [%{spvio.%loop-player-1%}%&c&l]&r&7!" to loop-player-2
- if {spvio.%loop-player%} is greater than 2:
- execute console command "osban %loop-player% Speed"
- stop
- #================================================================================================#
- # AntiKnockback (COMPLETE) (Added 9/20/17) #
- #================================================================================================#
- on damage:
- if {os.akb} is true:
- if attacker is a player:
- if victim is a player:
- victim's gamemode is survival or adventure:
- victim doesn't have regeneration:
- #victim is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
- victim is not flying
- victim is not riding
- if damage is caused by a projectile:
- wait 3 ticks
- else:
- set {_pos} to victim's location
- wait 5 ticks
- push victim backwards with force 0.01
- wait 5 ticks
- if distance between {_pos} and location of victim is 0:
- set {_nak.%victim%} to true
- set {_bpos} to block at victim
- set {_bposup} to block above {_bpos}
- set {_bposupup} to block above {_bposup}
- set {_bposupw} to block 0.5 west of {_bposup}
- set {_bposupe} to block 0.5 east of {_bposup}
- set {_bposupn} to block 0.5 north of {_bposup}
- set {_bposups} to block 0.5 south of {_bposup}
- set {_bposw} to block 0.5 west {_bpos}
- set {_bpose} to block 0.5 east {_bpos}
- set {_bposn} to block 0.5 north {_bpos}
- set {_bposs} to block 0.5 south {_bpos}
- wait 1 tick
- if {_bpos} is cobweb:
- set {_nak.%victim%} to false
- if {_bposup} is cobweb:
- set {_nak.%victim%} to false
- if {_bposupup} is cobweb:
- set {_nak.%victim%} to false
- if {_bposupw} is not air:
- set {_nak.%victim%} to false
- if {_bposupe} is not air:
- set {_nak.%victim%} to false
- if {_bposupn} is not air:
- set {_nak.%victim%} to false
- if {_bposups} is not air:
- set {_nak.%victim%} to false
- if {_bposw} is not air:
- set {_nak.%victim%} to false
- if {_bpose} is not air:
- set {_nak.%victim%} to false
- if {_bposn} is not air:
- set {_nak.%victim%} to false
- if {_bposs} is not air:
- set {_nak.%victim%} to false
- wait 1 tick
- if {_nak.%victim%} is true:
- add 1 to {akvio.%victim%}
- loop all players:
- if {osadmin.%loop-player%} is true:
- send "&9The Overseer> &c&l%victim%&r&7 is suspected of &c&lAntiKB [%{akvio.%victim%}%&c&l]&r&7!" to loop-player
- if {akvio.%victim%} is greater than 2:
- execute console command "osban %victim% Anti-Knockback"
- else:
- #message "&9The Overseer> &7Anti-Knockback not found." to all players
- #================================================================================================#
- # Fast Bow (INCOMPLETE)
- #================================================================================================#
- #on shoot:
- # projectile is an arrow
- # if difference between {bow.%shooter%} is less than 2 ticks:
- # send "&9The Overseer> &c&l%shooter%&r&7 is suspected of &c&lFast Bow&r&7!" to all players
- # set {bow.%shooter%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement