Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.44 KB | None | 0 0
  1. #======================================================#
  2. # The Overseer - The Anti Cheat God #
  3. # Do not touch anything, all of this is valuable data. #
  4. # #
  5. #------------------------------------------------------#
  6. # #
  7. # Project started on 9/17/17 #
  8. # LAST UPDATE ON: 9/25/17 at 5:42 PM #
  9. # #
  10. #------------------------------------------------------#
  11. # # _____
  12. # Note to user: This skript is written with skript # / _ \ \
  13. # variables, so your server MAY crash with this. A # | / \ | \ \
  14. # simple fix of this server crash is to delete the # | O | ) | |
  15. # variables file in plugins/skript/. To warn you, this # | \_/ | / /
  16. # Skript is one of my first few major projects, and # \_____/ /
  17. # I wish to make this anticheat better with #
  18. # absolutely no skript variables. The checkings are #
  19. # also in progress, if you feel as you want to change #
  20. # something, feel free to, but be warned that you may #
  21. # very well mess up, and all problems are not to be #
  22. # in fault of JTNCrafter and JTNStudios. #
  23. # #
  24. # If you need help, go to the website in which you #
  25. # found this resource, if you can, also try #
  26. # '/overseer' or '/overseer help' #
  27. # #
  28. #------------------------------------------------------#
  29. # ________________________ #
  30. # / \ #
  31. # Other notes to take! #
  32. # \________________________/ #
  33. # #
  34. # The anticheat may not be 100% cheat-proof, but it #
  35. # the anticheat will help you find hackers! #
  36. # #
  37. #------------------------------------------------------#
  38. # Made by JTNStudios (C) #
  39. # Skript written by JTNCrafter #
  40. #======================================================#
  41.  
  42.  
  43. #================================================================================================#
  44. # The Overseer Command! (Added 9/18/17) #
  45. #================================================================================================#
  46.  
  47. command /overseer [<text>] [<player>] [<text>]:
  48. permission: overseer.admin
  49. permission message: You can't use that here! Type '/help' for help.
  50. description: The Overseer Anticheat by: JTNCrafter!
  51. aliases: /os
  52. trigger:
  53. if arg 1 is set:
  54. if arg 1 is "clear":
  55. if arg 2 is set:
  56. if arg 3 is set:
  57. if arg 3 is "killaura" or "ka":
  58. set {kavio.%arg 2%} to 0
  59. message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Kill Aura Violations have been reset!" to player
  60. if arg 3 is "fastclick":
  61. set {fcvio.%arg 2%} to 0
  62. message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Fast Click Violations have been reset!" to player
  63. if arg 3 is "speed":
  64. set {spvio.%arg 2%} to 0
  65. message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Speed Violations have been reset!" to player
  66. if arg 3 is "flight":
  67. set {fvio.%arg 2%} to 0
  68. message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Flight Violations have been reset!" to player
  69. if arg 3 is "jesus":
  70. set {jvio.%arg 2%} to 0
  71. message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Jesus Violations have been reset!" to player
  72. if arg 3 is "antikb" or "antiknockback":
  73. set {akvio.%arg 2%} to 0
  74. message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Anti Knockback Violations have been reset!" to player
  75. else:
  76. message "&9The Overseer> &7You need to specify a hack!" to player
  77. message "&9The Overseer> &7'Do /overseer clear <player> <hack>'" to player
  78. else:
  79. message "&9The Overseer> &7You need to specify a player!" to player
  80. message "&9The Overseer> &7'Do /overseer clear <player> <hack>'" to player
  81. message "&c/overseer check <player> <hack>" to player
  82. message "&c/overseer clear <player> <hack>" to player
  83. else if arg 1 is "toggledetection":
  84. if arg 3 is set:
  85. if arg 3 is "killaura" or "ka":
  86. if {os.ka} is true:
  87. set {os.ka} to false
  88. message "&9The Overseer> &c&lKill Aura&r&7 is now not detecting!" to player
  89. else:
  90. set {os.ka} to true
  91. message "&9The Overseer> &c&lKill Aura&r&7 is now detecting!" to player
  92. else if arg 3 is "speed":
  93. if {os.sp} is true:
  94. set {os.sp} to false
  95. message "&9The Overseer> &c&lSpeed&r&7 is now not detecting!" to player
  96. else:
  97. set {os.sp} to true
  98. message "&9Overseer> &c&lSpeed&r&7 is now detecting!" to player
  99. else if arg 3 is "flight":
  100. if {os.fl} is true:
  101. set {os.fl} to false
  102. message "&9The Overseer> &c&lFlight&r&7 is now not detecting!" to player
  103. else:
  104. set {os.fl} to true
  105. message "&9The Overseer> &c&lFlight&r&7 is now detecting!" to player
  106. else if arg 3 is "jesus":
  107. if {os.je} is true:
  108. set {os.je} to false
  109. message "&9The Overseer> &c&lJesus&r&7 is now not detecting!" to player
  110. else:
  111. set {os.je} to true
  112. message "&9The Overseer> &c&lJesus&r&7 is now detecting!" to player
  113. else if arg 3 is "fastclick":
  114. if {os.fc} is true:
  115. set {os.fc} to false
  116. message "&9The Overseer> &c&lFast Click&r&7 is now not detecting!" to player
  117. else:
  118. set {os.fc} to true
  119. message "&9The Overseer> &c&lFast Click&r&7 is now detecting!" to player
  120. else if arg 3 is "antikb" or "antiknockback":
  121. if {os.akb} is true:
  122. set {os.akb} to false
  123. message "&9The Overseer> &c&lAnti-Knockback&r&7 is now not detecting!" to player
  124. else:
  125. set {os.akb} to true
  126. message "&9The Overseer> &c&lAnti-Knockback&r&7 is now detecting!" to player
  127. else:
  128. message "&9Overseer> &7You need to specify a hack!" to player
  129. message "&9Overseer> &7'Do /overseer clear <player> <hack>'" to player
  130. else if arg 1 is "clearall":
  131. if arg 2 is set:
  132. set {kavio.%arg 2%} to 0
  133. set {spvio.%arg 2%} to 0
  134. set {fvio.%arg 2%} to 0
  135. set {jvio.%arg 2%} to 0
  136. set {akvio.%arg 2%} to 0
  137. set {fcvio.%arg 2%} to 0
  138. message "&9The Overseer> &c&l%arg 2%&c&l's&r&7 Violations have been fully reset!" to player
  139. else:
  140. message "&9The Overseer> &7You need to specify a player!" to player
  141. message "&9The Overseer> &7'Do /overseer clearall <player>'" to player
  142. else if arg 1 is "detectall":
  143. set {os.ka} to true
  144. set {os.sp} to true
  145. set {os.fl} to true
  146. set {os.je} to true
  147. set {os.akb} to true
  148. set {os.fc} to true
  149. message "&9The Overseer> &c&lAll Hacks&r&7 are now detecting!" to player
  150. else if arg 1 is "undetectall":
  151. set {os.ka} to false
  152. set {os.sp} to false
  153. set {os.fl} to false
  154. set {os.je} to false
  155. set {os.akb} to false
  156. set {os.fc} to false
  157. message "&9The Overseer> &c&lAll Hacks&r&7 are now not detecting!" to player
  158. else if arg 1 is "help":
  159. message "&5&l&m===============&8[&r&a&lThe &4&lOverseer&r&8]&5&l&m===============" to player
  160. message " " to player
  161. message "&a&lOverseer Commands (Full Page)" to player
  162. message " " to player
  163. message "&c/osinfo <player>" to player
  164. message "&c/osdetection" to player
  165. message "&c/overseer clear <player> <hack>" to player
  166. message "&c/overseer clearall <player>" to player
  167. message "&c/overseer toggledetection <hack>" to player
  168. message "&c/overseer detectall" to player
  169. message "&c/overseer undetectall" to player
  170. message "&c/overseer notify <player>" to player
  171. message "&c/osunban <player> - Unban a Overseer Banned Player!" to player
  172. message "&c/overseer help (Shows This Page)" to player
  173. message " " to player
  174. message "&5&l&m===========================================" to player
  175. else if arg 1 is "toggleban":
  176. if {os.ban} is true:
  177. set {os.ban} to false
  178. message "&9The Overseer> &7Overseer will now &c&lNOT&r&7 ban hackers!" to player
  179. else:
  180. set {os.ban} to true
  181. message "&9The Overseer> &7Overseer will now &c&lBAN&r&7 hackers!" to player
  182. else if arg 1 is "notification" or "notify":
  183. if arg 2 is set:
  184. if {osadmin.%arg 2%} is true:
  185. set {osadmin.%arg 2%} to false
  186. message "&9The Overseer> &7The player will not be notified about hacks!" to player
  187. else:
  188. set {osadmin.%arg 2%} to true
  189. message "&9The Overseer> &7The player will be notified about hacks!" to player
  190. else:
  191. message "&9The Overseer> &7You need to specify a player!" to player
  192. message "&9The Overseer> &7'Do /overseer notification <player>'" to player
  193. else if arg 1 is "reload":
  194. execute console command "sk reload Overseer"
  195. execute console command "sk reload OS"
  196. message "&9The Overseer> &7Reload Complete."
  197. else:
  198. message "&5&l&m===============&8[&r&a&lThe &4&lOverseer&r&8]&5&l&m===============" to player
  199. message " " to player
  200. message "&a&lOverseer Version: &6&l(Phase 2/3)" to player
  201. message "&a&lCreator: &6&lJTNCrafter"
  202. message " " to player
  203. message "&5&l&m===========================================" to player
  204. message " " to player
  205. message "&a&lLast Update: 9/25/17 at 5:42 PM"
  206. message " " to player
  207. message "&5&l&m===========================================" to player
  208. message " " to player
  209. message "&a&lOverseer Commands (Basic)" to player
  210. message "&c/osinfo <player>" to player
  211. message "&c/overseer clear <player> <hack>" to player
  212. message "&c/overseer clearall <player>" to player
  213. message "&c/overseer toggledetection <hack>" to player
  214. message "&c/osunban <player> - Unban a Overseer Banned Player!" to player
  215. message "&c/overseer help (Shows All Commands)" to player
  216. message " " to player
  217. message "&5&l&m===========================================" to player
  218.  
  219. #================================================================================================#
  220. # Overseer Info Command (Added 9/25/17) #
  221. #================================================================================================#
  222.  
  223. command /osinfo [<player>] [<offlineplayer>]:
  224. permission: overseer.info
  225. permission message: Unknown Command. Type '/help' for help.
  226. aliases: /overseerinfo
  227. trigger:
  228. if arg 1 is set:
  229. open chest with 3 rows named "&8[&2&lOverseer&r&8] &c&l%arg 1%" to player
  230. format slot 0 of player with gray stained glass pane named " " with lore " " to close then run " "
  231. format slot 1 of player with gray stained glass pane named " " with lore " " to close then run " "
  232. format slot 2 of player with gray stained glass pane named " " with lore " " to close then run " "
  233. format slot 3 of player with gray stained glass pane named " " with lore " " to close then run " "
  234. 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 " "
  235. format slot 5 of player with gray stained glass pane named " " with lore " " to close then run " "
  236. format slot 6 of player with gray stained glass pane named " " with lore " " to close then run " "
  237. format slot 7 of player with gray stained glass pane named " " with lore " " to close then run " "
  238. format slot 8 of player with gray stained glass pane named " " with lore " " to close then run " "
  239. format slot 10 of player with gray stained glass pane named " " with lore " " to close then run " "
  240. format slot 12 of player with gray stained glass pane named " " with lore " " to close then run " "
  241. format slot 14 of player with gray stained glass pane named " " with lore " " to close then run " "
  242. format slot 19 of player with gray stained glass pane named " " with lore " " to close then run " "
  243. format slot 21 of player with gray stained glass pane named " " with lore " " to close then run " "
  244. format slot 23 of player with gray stained glass pane named " " with lore " " to close then run " "
  245. format slot 16 of player with gray stained glass pane named " " with lore " " to close then run " "
  246. format slot 25 of player with gray stained glass pane named " " with lore " " to close then run " "
  247. 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 " "
  248. format slot 18 of player with tnt named "&5&lDelete Fast Click Violations!" with lore " " to close then run "os clear %arg 1% FastClick"
  249. 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 " "
  250. format slot 20 of player with tnt named "&5&lDelete Kill Aura Violations!" with lore " " to close then run "os clear %arg 1% KillAura"
  251. 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 " "
  252. format slot 22 of player with tnt named "&5&lDelete Flight Violations!" with lore " " to close then run "os clear %arg 1% Flight"
  253. 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 " "
  254. format slot 24 of player with tnt named "&5&lDelete Speed Violations!" with lore " " to close then run "os clear %arg 1% Speed"
  255. 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 " "
  256. format slot 26 of player with tnt named "&5&lDelete Anti Knockback Violations!" with lore " " to close then run "os clear %arg 1% AntiKb"
  257. if arg 2 is set:
  258. open chest with 3 rows named "&8[&2&lOverseer&r&8] &c&l%arg 2%" to player
  259. format slot 0 of player with gray stained glass pane named " " with lore " " to close then run " "
  260. format slot 1 of player with gray stained glass pane named " " with lore " " to close then run " "
  261. format slot 2 of player with gray stained glass pane named " " with lore " " to close then run " "
  262. format slot 3 of player with gray stained glass pane named " " with lore " " to close then run " "
  263. format slot 4 of player with barrier named "&c&l%arg 2%" with lore " " to close then run " "
  264. format slot 5 of player with gray stained glass pane named " " with lore " " to close then run " "
  265. format slot 6 of player with gray stained glass pane named " " with lore " " to close then run " "
  266. format slot 7 of player with gray stained glass pane named " " with lore " " to close then run " "
  267. format slot 8 of player with gray stained glass pane named " " with lore " " to close then run " "
  268. format slot 10 of player with gray stained glass pane named " " with lore " " to close then run " "
  269. format slot 12 of player with gray stained glass pane named " " with lore " " to close then run " "
  270. format slot 14 of player with gray stained glass pane named " " with lore " " to close then run " "
  271. format slot 19 of player with gray stained glass pane named " " with lore " " to close then run " "
  272. format slot 21 of player with gray stained glass pane named " " with lore " " to close then run " "
  273. format slot 23 of player with gray stained glass pane named " " with lore " " to close then run " "
  274. format slot 16 of player with gray stained glass pane named " " with lore " " to close then run " "
  275. format slot 25 of player with gray stained glass pane named " " with lore " " to close then run " "
  276. 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 " "
  277. format slot 18 of player with tnt named "&5&lDelete Fast Click Violations!" with lore " " to close then run "os clear %arg 2% FastClick"
  278. 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 " "
  279. format slot 20 of player with tnt named "&5&lDelete Kill Aura Violations!" with lore " " to close then run "os clear %arg 2% KillAura"
  280. 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 " "
  281. format slot 22 of player with tnt named "&5&lDelete Flight Violations!" with lore " " to close then run "os clear %arg 2% Flight"
  282. 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 " "
  283. format slot 24 of player with tnt named "&5&lDelete Speed Violations!" with lore " " to close then run "os clear %arg 2% Speed"
  284. 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 " "
  285. format slot 26 of player with tnt named "&5&lDelete Anti Knockback Violations!" with lore " " to close then run "os clear %arg 2% AntiKb"
  286.  
  287. #================================================================================================#
  288. # Overseer Detection Command (Added 9/25/17) #
  289. #================================================================================================#
  290.  
  291. command /osdetection:
  292. permission: overseer.detect
  293. permission message: Unknown Command. Type '/help' for help.
  294. aliases: /overseerdetection
  295. trigger:
  296. open chest with 1 row named "&8[&2&lOverseer&r&8] &c&lToggle Options" to player
  297. format slot 0 of player with emerald block named "&2&lDetect All Hacks!" with lore " " to close then run "os detectall"
  298. format slot 1 of player with gray stained glass pane named " " with lore " " to close then run " "
  299. if {os.fc} is true:
  300. 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"
  301. else:
  302. 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"
  303. if {os.ka} is true:
  304. 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"
  305. else:
  306. 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"
  307. if {os.fl} is true:
  308. 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"
  309. else:
  310. 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"
  311. if {os.sp} is true:
  312. 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"
  313. else:
  314. 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"
  315. if {os.akb} is true:
  316. 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"
  317. else:
  318. 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"
  319. format slot 7 of player with gray stained glass pane named " " with lore " " to close then run " "
  320. format slot 8 of player with redstone block named "&c&lUndetect All Hacks!" with lore " " to close then run "os undetectall"
  321.  
  322. #================================================================================================#
  323. # Overseer Unban Command (Added 9/20/17) #
  324. #================================================================================================#
  325.  
  326. command /osunban <offlineplayer>:
  327. permission: overseer.unban
  328. permission message: Unknown Command. Type '/help' for help.
  329. trigger:
  330. if arg 1 is set:
  331. set {osbanned.%arg 1%} to false
  332. message "&9The Overseer> &c&l%arg 1%&r&7 is now unbanned from &2&lThe Overseer&r&7!" to player
  333. else:
  334. message "&9The Overseer> &7You need to specify a player!" to player
  335. message "&9The Overseer> &7'Do /overseer unban <player>'" to player
  336. #================================================================================================#
  337. # Ban Effect (Added 9/20/17) #
  338. #================================================================================================#
  339.  
  340. command /osban <player> <text>:
  341. permission: overseer.ban
  342. permission message: Unknown Command. Type '/help' for help.
  343. trigger:
  344. if {os.ban} is true:
  345. set {_ostp} to arg 1's location
  346. set {_osban} to "%arg 1%"
  347. teleport arg 1 to {_ostp}
  348. send "&9The Overseer>&7 I see... a hacker! It's &c&l%arg 1%" to all players
  349. wait 20 ticks
  350. teleport arg 1 to {_ostp}
  351. wait 20 ticks
  352. teleport arg 1 to {_ostp}
  353. wait 20 ticks
  354. teleport arg 1 to {_ostp}
  355. wait 20 ticks
  356. teleport arg 1 to {_ostp}
  357. wait 20 ticks
  358. teleport arg 1 to {_ostp}
  359. send "&9The Overseer>&7 Goodbye &c&l%arg 1%&r&7!" to all players
  360. wait 20 ticks
  361. teleport arg 1 to {_ostp}
  362. execute console command "osremove %{_osban}% %arg 2%"
  363. wait 20 ticks
  364. teleport arg 1 to {_ostp}
  365. wait 20 ticks
  366. teleport arg 1 to {_ostp}
  367. wait 20 ticks
  368. teleport arg 1 to {_ostp}
  369. wait 20 ticks
  370. teleport arg 1 to {_ostp}
  371. wait 20 ticks
  372. teleport arg 1 to {_ostp}
  373. wait 20 ticks
  374. teleport arg 1 to {_ostp}
  375.  
  376. #================================================================================================#
  377. # Ban Command (Added 9/20/17) #
  378. #================================================================================================#
  379.  
  380. command /osremove [<player>] [<offlineplayer>] <text>:
  381. permission: overseer.ban
  382. permission message: Unknown Command. Type '/help' for help.
  383. trigger:
  384. if arg 1 is set:
  385. kick arg 1 due to "&c&lYou were banned by &2&lThe Overseer&r&c&l for: &4&l%arg 3%"
  386. set {osbanned.%arg 1%} to true
  387. set {osbannedr.%arg 1%} to "%arg 3%"
  388. if arg 2 is set:
  389. kick arg 2 due to "&c&lYou were banned by &2&lThe Overseer&r&c&lfor: &4&l%arg 3%"
  390. set {osbanned.%arg 2%} to true
  391. set {osbannedr.%arg 2%} to "%arg 3%"
  392.  
  393. #================================================================================================#
  394. # Ban out of the server! (Added 9/20/17) #
  395. #================================================================================================#
  396.  
  397. on join:
  398. if {osbanned.%player%} is true:
  399. kick the player due to "&c&lYou were banned by &2&lThe Overseer&r&c&l for: &4&l%{osbannedr.%player%}%"
  400.  
  401. #================================================================================================#
  402. # Fast Clicking (COMPLETE) (Added 9/22/17)
  403. #================================================================================================#
  404. on left click:
  405. add 1 to {clicks.%player%}
  406.  
  407. every second:
  408. loop all players:
  409. if {os.fc} is true:
  410. #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
  411. if {clicks.%loop-player%} is greater than 12:
  412. loop all players:
  413. if {osadmin.%loop-player-2%} is true:
  414. add 1 to {fcvio.%loop-player-1%}
  415. 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
  416. wait 1 tick
  417. if {fcvio.%loop-player-1%} is greater than 2:
  418. execute console command "osban %loop-player-1% Fast-Click"
  419. set {clicks.%loop-player%} to 0
  420.  
  421. #================================================================================================#
  422. # Kill Aura (COMPLETE) (Added 9/18/17) #
  423. #================================================================================================#
  424.  
  425. on damage of a player:
  426. if {os.ka} is true:
  427. #attacker is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
  428. if attacker is a player:
  429. if victim is a player:
  430. if damage is caused by a projectile:
  431. wait 3 ticks
  432. else:
  433. if attacker's gamemode is survival or adventure:
  434. set {_ka} to distance between attacker and victim
  435. if {_ka} is greater than 5:
  436. add 1 to {kavio.%attacker%}
  437. loop all players:
  438. if {osadmin.%loop-player%} is true:
  439. send "&9The Overseer> &c&l%attacker%&r&7 is suspected of &c&lKillAura [%{kavio.%attacker%}%&c&l]&r&7!" to loop-player
  440. if {kavio.%attacker%} is greater than 2:
  441. execute console command "osban %attacker% KillAura"
  442.  
  443. #================================================================================================#
  444. # Water/Lava Walk / Jesus (COMPLETED) (Added 9/19/17) #
  445. #================================================================================================#
  446.  
  447. every 2 seconds:
  448. if {os.je} is true:
  449. loop all players:
  450. #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
  451. loop-player is not flying
  452. loop-player is not riding
  453. loop-player doesn't have jump boost
  454. loop-player is not sneaking
  455. loop-player is alive
  456. set {_y} to loop-player's altitude
  457. wait 2 ticks
  458. if {_y} is greater than y-coordinate of loop-player:
  459. wait 3 ticks
  460. else:
  461. if block 0.1 below loop-player is stationary water or stationary lava:
  462. set {_jnf.%loop-player%} to true
  463. set {_bpos} to block at loop-player
  464. set {_bposup} to block above {_bpos}
  465. set {_bpos2} to block under {_bpos}
  466. set {_buu} to block under {_bpos2}
  467. set {_bn} to block north of {_bpos2}
  468. set {_bw} to block west of {_bpos2}
  469. set {_bs} to block south of {_bpos2}
  470. set {_be} to block east of {_bpos2}
  471. set {_bne} to block east of {_bn}
  472. set {_bse} to block east of {_bs}
  473. set {_bnw} to block west of {_bn}
  474. set {_bsw} to block west of {_bs}
  475. set {_bnu} to block under {_bn}
  476. set {_bwu} to block under {_bw}
  477. set {_bsu} to block under {_bs}
  478. set {_beu} to block under {_be}
  479. set {_bneu} to block under {_bne}
  480. set {_bseu} to block under {_bse}
  481. set {_bnwu} to block under {_bnw}
  482. set {_bswu} to block under {_bsw}
  483. if {_bn} is not air, stationary water or stationary lava:
  484. set {_jnf.%loop-player%} to false
  485. else if {_bpos} is stationary water or stationary lava:
  486. set {_jnf.%loop-player%} to false
  487. else if {_bposup} is stationary water or stationary lava:
  488. set {_jnf.%loop-player%} to false
  489. else if {_be} is not air, stationary water or stationary lava:
  490. set {_jnf.%loop-player%} to false
  491. else if {_bs} is not air, stationary water or stationary lava:
  492. set {_jnf.%loop-player%} to false
  493. else if {_bw} is not air, stationary water or stationary lava:
  494. set {_jnf.%loop-player%} to false
  495. else if {_bne} is not air, stationary water or stationary lava:
  496. set {_jnf.%loop-player%} to false
  497. else if {_bse} is not air, stationary water or stationary lava:
  498. set {_jnf.%loop-player%} to false
  499. else if {_bsw} is not air, stationary water or stationary lava:
  500. set {_jnf.%loop-player%} to false
  501. else if {_bnw} is not air, stationary water or stationary lava:
  502. set {_jnf.%loop-player%} to false
  503. else if {_bnu} is not air, stationary water or stationary lava:
  504. set {_jnf.%loop-player%} to false
  505. else if {_beu} is not air, stationary water or stationary lava:
  506. set {_jnf.%loop-player%} to false
  507. else if {_bsu} is not air, stationary water or stationary lava:
  508. set {_jnf.%loop-player%} to false
  509. else if {_bwu} is not air, stationary water or stationary lava:
  510. set {_jnf.%loop-player%} to false
  511. else if {_bneu} is not air, stationary water or stationary lava:
  512. set {_jnf.%loop-player%} to false
  513. else if {_bseu} is not air, stationary water or stationary lava:
  514. set {_jnf.%loop-player%} to false
  515. else if {_bswu} is not air, stationary water or stationary lava:
  516. set {_jnf.%loop-player%} to false
  517. else if {_bnwu} is not air, stationary water or stationary lava:
  518. set {_jnf.%loop-player%} to false
  519. else if {_buu} is not air, stationary water or stationary lava:
  520. set {_jnf.%loop-player%} to false
  521. wait 1 tick
  522. if {_jnf.%loop-player%} is true:
  523. add 1 to {jvio.%loop-player%}
  524. loop all players:
  525. if {osadmin.%loop-player-2%} is true:
  526. 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
  527. if {jvio.%loop-player%} is greater than 2:
  528. execute console command "osban %loop-player% Jesus"
  529. else:
  530. #message "&9Overseer> &7Jesus not found." to all players
  531.  
  532. #================================================================================================#
  533. # Flight (COMPLETED) (Added 9/19/17) #
  534. #================================================================================================#
  535.  
  536. every second:
  537. if {os.fl} is true:
  538. loop all players:
  539. if loop-player's gamemode is survival or adventure:
  540. #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
  541. loop-player's flight mode is false
  542. loop-player isn't riding
  543. loop-player doesn't have jump boost
  544. loop-player is not flying
  545. block below loop-player is not a ladder
  546. block in front of loop-player is not a ladder
  547. set {_y} to loop-player's altitude
  548. add 1 to {_y}
  549. wait 2 ticks
  550. if {_y} is greater than y-coordinate of loop-player:
  551. wait 3 ticks
  552. else:
  553. if block 0.1 below loop-player is air:
  554. set {_nf.%loop-player%} to true
  555. set {_bpos} to block at loop-player
  556. set {_bposup} to block above {_bpos}
  557. set {_bposupup} to block above {_bposup}
  558. set {_bposupw} to block west of {_bposup}
  559. set {_bposupe} to block east of {_bposup}
  560. set {_bposupn} to block north of {_bposup}
  561. set {_bposups} to block south of {_bposup}
  562. set {_bpos2} to block under {_bpos}
  563. set {_buu} to block under {_bpos2}
  564. set {_bn} to block north of {_bpos2}
  565. set {_bw} to block west of {_bpos2}
  566. set {_bs} to block south of {_bpos2}
  567. set {_be} to block east of {_bpos2}
  568. set {_bne} to block east of {_bn}
  569. set {_bse} to block east of {_bs}
  570. set {_bnw} to block west of {_bn}
  571. set {_bsw} to block west of {_bs}
  572. set {_bnu} to block under {_bn}
  573. set {_bwu} to block under {_bw}
  574. set {_bsu} to block under {_bs}
  575. set {_beu} to block under {_be}
  576. set {_bneu} to block under {_bne}
  577. set {_bseu} to block under {_bse}
  578. set {_bnwu} to block under {_bnw}
  579. set {_bswu} to block under {_bsw}
  580. if {_bn} is not air:
  581. set {_nf.%loop-player%} to false
  582. else if {_be} is not air:
  583. set {_nf.%loop-player%} to false
  584. else if {_bs} is not air:
  585. set {_nf.%loop-player%} to false
  586. else if {_bw} is not air:
  587. set {_nf.%loop-player%} to false
  588. else if {_bne} is not air:
  589. set {_nf.%loop-player%} to false
  590. else if {_bse} is not air:
  591. set {_nf.%loop-player%} to false
  592. else if {_bsw} is not air:
  593. set {_nf.%loop-player%} to false
  594. else if {_bnw} is not air:
  595. set {_nf.%loop-player%} to false
  596. else if {_bnu} is not air:
  597. set {_nf.%loop-player%} to false
  598. else if {_beu} is not air:
  599. set {_nf.%loop-player%} to false
  600. else if {_bsu} is not air:
  601. set {_nf.%loop-player%} to false
  602. else if {_bwu} is not air:
  603. set {_nf.%loop-player%} to false
  604. else if {_bneu} is not air:
  605. set {_nf.%loop-player%} to false
  606. else if {_bseu} is not air:
  607. set {_nf.%loop-player%} to false
  608. else if {_bswu} is not air:
  609. set {_nf.%loop-player%} to false
  610. else if {_bnwu} is not air:
  611. set {_nf.%loop-player%} to false
  612. else if {_buu} is not air:
  613. set {_nf.%loop-player%} to false
  614. else if {_bposupw} is cobweb:
  615. set {_nf.%loop-player%} to false
  616. else if {_bposupe} is cobweb:
  617. set {_nf.%loop-player%} to false
  618. else if {_bposupn} is cobweb:
  619. set {_nf.%loop-player%} to false
  620. else if {_bposups} is cobweb:
  621. set {_nf.%loop-player%} to false
  622. else if {_bposup} is cobweb:
  623. set {_nf.%loop-player%} to false
  624. else if {_bposupup} is cobweb:
  625. set {_nf.%loop-player%} to false
  626. wait 1 tick
  627. if {_nf.%loop-player%} is true:
  628. add 1 to {fvio.%loop-player%}
  629. loop all players:
  630. if {osadmin.%loop-player-2%} is true:
  631. 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
  632. if {fvio.%loop-player%} is greater than 2:
  633. execute console command "osban %loop-player% Flight"
  634. else:
  635. #message "&9The Overseer> &7Flight not found." to all players
  636.  
  637. #================================================================================================#
  638. # Speed / Teleport / Flight (COMPLETE) (Added 9/18/17) #
  639. #================================================================================================#
  640.  
  641. on teleport:
  642. set {tp.%player%} to true
  643. wait 3 seconds
  644. set {tp.%player%} to false
  645.  
  646. every 3 seconds:
  647. if {os.sp} is true:
  648. loop all players:
  649. #loop-player is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
  650. if {speedable} is false:
  651. wait 3 ticks
  652. else:
  653. loop-player's gamemode is survival or adventure
  654. loop-player is not flying
  655. loop-player is alive
  656. loop-player's walk speed is less than 0.4
  657. loop-player's fly speed is less than 0.4
  658. loop-player is not riding
  659. loop-player doesn't have speed
  660. set {_y} to loop-player's altitude
  661. set {speedable} to true
  662. wait 2 ticks
  663. if {_y} is greater than y-coordinate of loop-player:
  664. wait 3 ticks
  665. else:
  666. if {tp.%loop-player%} is false:
  667. set {_pos1.%loop-player%} to loop-player's location
  668. wait 1 second
  669. loop-player is not riding
  670. if distance between {_pos1.%loop-player%} and location of loop-player is greater than 11:
  671. if {speedable} is true:
  672. add 1 to {spvio.%loop-player%}
  673. loop all players:
  674. if {osadmin.%loop-player-2%} is true:
  675. 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
  676. if {spvio.%loop-player%} is greater than 2:
  677. execute console command "osban %loop-player% Speed"
  678. stop
  679.  
  680. #================================================================================================#
  681. # AntiKnockback (COMPLETE) (Added 9/20/17) #
  682. #================================================================================================#
  683. on damage:
  684. if {os.akb} is true:
  685. if attacker is a player:
  686. if victim is a player:
  687. victim's gamemode is survival or adventure:
  688. victim doesn't have regeneration:
  689. #victim is not in "WORLDNAME" #ONLY CHANGE WORLD NAME TO A WORLD THAT YOU DO NOT WANT TO DETECT IN!
  690. victim is not flying
  691. victim is not riding
  692. if damage is caused by a projectile:
  693. wait 3 ticks
  694. else:
  695. set {_pos} to victim's location
  696. wait 5 ticks
  697. push victim backwards with force 0.01
  698. wait 5 ticks
  699. if distance between {_pos} and location of victim is 0:
  700. set {_nak.%victim%} to true
  701. set {_bpos} to block at victim
  702. set {_bposup} to block above {_bpos}
  703. set {_bposupup} to block above {_bposup}
  704. set {_bposupw} to block 0.5 west of {_bposup}
  705. set {_bposupe} to block 0.5 east of {_bposup}
  706. set {_bposupn} to block 0.5 north of {_bposup}
  707. set {_bposups} to block 0.5 south of {_bposup}
  708. set {_bposw} to block 0.5 west {_bpos}
  709. set {_bpose} to block 0.5 east {_bpos}
  710. set {_bposn} to block 0.5 north {_bpos}
  711. set {_bposs} to block 0.5 south {_bpos}
  712. wait 1 tick
  713. if {_bpos} is cobweb:
  714. set {_nak.%victim%} to false
  715. if {_bposup} is cobweb:
  716. set {_nak.%victim%} to false
  717. if {_bposupup} is cobweb:
  718. set {_nak.%victim%} to false
  719. if {_bposupw} is not air:
  720. set {_nak.%victim%} to false
  721. if {_bposupe} is not air:
  722. set {_nak.%victim%} to false
  723. if {_bposupn} is not air:
  724. set {_nak.%victim%} to false
  725. if {_bposups} is not air:
  726. set {_nak.%victim%} to false
  727. if {_bposw} is not air:
  728. set {_nak.%victim%} to false
  729. if {_bpose} is not air:
  730. set {_nak.%victim%} to false
  731. if {_bposn} is not air:
  732. set {_nak.%victim%} to false
  733. if {_bposs} is not air:
  734. set {_nak.%victim%} to false
  735. wait 1 tick
  736. if {_nak.%victim%} is true:
  737. add 1 to {akvio.%victim%}
  738. loop all players:
  739. if {osadmin.%loop-player%} is true:
  740. send "&9The Overseer> &c&l%victim%&r&7 is suspected of &c&lAntiKB [%{akvio.%victim%}%&c&l]&r&7!" to loop-player
  741. if {akvio.%victim%} is greater than 2:
  742. execute console command "osban %victim% Anti-Knockback"
  743. else:
  744. #message "&9The Overseer> &7Anti-Knockback not found." to all players
  745.  
  746. #================================================================================================#
  747. # Fast Bow (INCOMPLETE)
  748. #================================================================================================#
  749. #on shoot:
  750. # projectile is an arrow
  751. # if difference between {bow.%shooter%} is less than 2 ticks:
  752. # send "&9The Overseer> &c&l%shooter%&r&7 is suspected of &c&lFast Bow&r&7!" to all players
  753. # set {bow.%shooter%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement