Advertisement
NARUMC

Untitled

Oct 18th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.42 KB | None | 0 0
  1. #Permissions:
  2. # guardian.admin - Use of /guardian command
  3. # guardian.elder - Use of /elder command
  4. # guardian.check - Use of /check command
  5. # guardian.bypass - Cannot be banned!
  6.  
  7. #Commands:
  8. # /guardian - Usage for bannig, kicking, unbaning
  9. # /elder - Used for animated banning
  10. # /check - Shows all of your or other players checks
  11.  
  12. #Hacks Blocked:
  13. # KillAura
  14. # MultiAura
  15. # LegitAura
  16. # CrazyAura
  17. # FastAura
  18. # FastAura
  19. # FastEat
  20. # Regen
  21. # Auto Sneak
  22. # Fast Place
  23. # Fast Break
  24. # Fly
  25. # Jesus
  26.  
  27.  
  28. #------------------------------------------------------------
  29. # Edit after this part!
  30. #------------------------------------------------------------
  31.  
  32. options:
  33. #Logo will be displayed before each message!
  34. logo: &6[&3Guardian&6]|
  35.  
  36. #Should people be banned by Guardian?
  37. banwave: true
  38.  
  39. #Should animation of guardian banning be used?
  40. animated: true
  41.  
  42. #This is how players will see ban screen when they
  43. #try to log on the server
  44. banmsg: &6[&3Guardian&6]| &cYou are banned for: &e%arg 3%
  45.  
  46. #Should staff members recieve reports only in staff mode?
  47. onlyinstaff: false
  48.  
  49. #-----------------------
  50. #Kill Aura
  51. #-----------------------
  52. #Should Kill Aura be checked?
  53. killaura: true
  54.  
  55. #Should players get banned for Kill Aura?
  56. auraban: true
  57.  
  58. #After how much checks should players get banned?
  59. killauradetect: 30
  60.  
  61. #-----------------------
  62. #Multi Aura
  63. #-----------------------
  64. #Should Multi Aura be checked?
  65. multiaura: true
  66.  
  67. #Should players get banned for Multi Aura?
  68. multiauraban: true
  69.  
  70. #After how much checks should players get banned?
  71. multiauradetect: 30
  72.  
  73. #-----------------------
  74. #Regen
  75. #-----------------------
  76. #Should Regen be enabled?
  77. regen: true
  78.  
  79. #Should Fast eat be enabled?
  80. fasteat: true
  81.  
  82. #-----------------------
  83. #Anti KB
  84. #-----------------------
  85. antikb: true
  86.  
  87. antikbdetect: 30
  88.  
  89. #-----------------------
  90. #Fast Place/Break
  91. #-----------------------
  92. fastplace: true
  93. fastbreak: true
  94.  
  95. fastplacecheck: 30
  96. fastbreakcheck: 30
  97.  
  98. #-----------------------
  99. #Fly/Jesus [BETA]
  100. #-----------------------
  101. #Fly and Jesus are in beta which means that players will not
  102. #get banned/kicked for it, staff members will get notifications
  103. #but nothing else!
  104. #Once its out of the beta proper banning and kicking will be added!
  105. fly: true
  106. jesus: true
  107.  
  108. #-----------------------
  109. #Custom Banning
  110. #-----------------------
  111. #Use this feature if you want to make guardian ban
  112. #players using third party plugins (Lite bans for example)
  113. #If this is used then banning animation will not be used!
  114.  
  115. custombanning: false
  116. custombancmd: ban %loop-player% Hacking
  117.  
  118. #-----------------------
  119. #Broadcasts
  120. #-----------------------
  121. #Should certain things be broadcasted?
  122. broadcastban: true
  123.  
  124. broadcastkick: true
  125.  
  126. #-----------------------
  127. #Promotion Message
  128. #-----------------------
  129. #This message is displayed when op joins!
  130. promotionmsg: true
  131.  
  132. #------------------------------------------------------------
  133. # Do NOT touch anythinc after this! It might break!
  134. #------------------------------------------------------------
  135.  
  136. variables:
  137. {killaura.%player%} = 0
  138. {multichecker.%player%} = 0
  139. {multiaura.%player%} = 0
  140. {waittimer.%player%} = 0
  141. {dban.%player%} = false
  142. {set.%player%} = false
  143. {guardianstaffmode.%player%} = false
  144. {invis.%player%} = false
  145. {antikb.%player%} = 0
  146. {fastplace.%player%} = 0
  147. {fastbreak.%player%} = 0
  148. {fly.%player%} = 0
  149. {jesus.%player%} = 0
  150.  
  151. on join:
  152. if {set.%player%} is false:
  153. set {killaura.%player%} to 0
  154. set {multiaura.%player%} to 0
  155. set {set.%player%} to true
  156. set {antikb.%player%} to 0
  157. set {fastplace.%player%} to 0
  158. set {fastbreak.%player%} to 0
  159. set {fly.%player%} to 0
  160. set {jesus.%player%} to 0
  161.  
  162. on join:
  163. if player is op:
  164. if {@promotionmsg} is true:
  165. send "&6===========================" to player
  166. send "&aThank you for using &3Guardian!" to player
  167. send "&e " to player
  168. send "&eIf you like this skript please" to player
  169. send "&econsider donating! It will help" to player
  170. send "&eIn future &3Guardian &edevelopment!" to player
  171. send "&6===========================" to player
  172. else:
  173. stop
  174. else:
  175. stop
  176.  
  177. command /check [<offline player>]:
  178. permission: guardian.check
  179. trigger:
  180. if arg 1 is not set:
  181. message "{@logo} &aKill Aura: &e%{killaura.%player%}%"
  182. message "{@logo} &aMulti Aura: &e%{multiaura.%player%}%"
  183. message "{@logo} &aAnti Knockback: &e%{antikb.%player%}%"
  184. message "{@logo} &aFast Place: &e%{fastplace.%player%}%"
  185. message "{@logo} &aFast Break: &e%{fastbreak.%player%}%"
  186. message "{@logo} &aFly: &e%{fly.%player%}%"
  187. message "{@logo} &aJesus: &e%{jesus.%player%}%"
  188. stop
  189. if arg 1 is set:
  190. message "{@logo} &aKill Aura: &e%{killaura.%arg 1%}%"
  191. message "{@logo} &aMulti Aura: &e%{multiaura.%arg 1%}%"
  192. message "{@logo} &aAnti Knockback: &e%{antikb.%arg 1%}%"
  193. message "{@logo} &aFast Place: &e%{fastplace.%arg 1%}%"
  194. message "{@logo} &aFast Break: &e%{fastbreak.%arg 1%}%"
  195. message "{@logo} &aFly: &e%{fly.%arg 1%}%"
  196. message "{@logo} &aJesus: &e%{jesus.%arg 1%}%"
  197.  
  198. every minute:
  199. loop all players:
  200. if {killaura.%loop-player%} is higher than 0:
  201. remove 1 from {killaura.%loop-player%}
  202. stop
  203. if {multiaura.%loop-player%} is higher than 0:
  204. remove 1 from {multiaura.%loop-player%}
  205. stop
  206. if {antikb.%loop-player%} is higher than 0:
  207. remove 1 from {antikb.%loop-player%}
  208. stop
  209. if {fastplace.%loop-player%} is higher than 0:
  210. remove 1 from {fastplace.%loop-player%}
  211. stop
  212. if {fastbreak.%loop-player%} is higher than 0:
  213. remove 1 from {fastbreak.%loop-player%}
  214. stop
  215. if {fly.%loop-player%} is higher than 0:
  216. remove 1 from {fly.%loop-player%}
  217. stop
  218. if {jesus.%loop-player%} is higher than 0:
  219. remove 1 from {jesus.%loop-player%}
  220. stop
  221.  
  222. command /guardian [<text>] [<offline player>] [<text>]:
  223. permission: guardian.admin
  224. aliases: /ac, /anticheat, /guard
  225. trigger:
  226. if arg 1 is not set:
  227. message "&6&m---------[&3Guardian&6&m]---------"
  228. message "&f/guardian help"
  229. message "&f/guardian ban <player> <hack>"
  230. message "&f/guardian kick <player> <reason>"
  231. message "&f/guardian reset <player>"
  232. message "&6&m---------[&3Guardian&6&m]---------"
  233. if arg 1 is "help":
  234. message "&6&m---------[&3Guardian&6&m]---------"
  235. message "&f/guardian help"
  236. message "&f/guardian ban <player> <hack>"
  237. message "&f/guardian kick <player> <reason>"
  238. message "&f/guardian reset <player>"
  239. message "&6&m---------[&3Guardian&6&m]---------"
  240. if arg 1 is "ban":
  241. if arg 2 is set:
  242. if arg 3 is set:
  243. if arg 2 has permission "guardian.bypass":
  244. message "{@logo} &cYou cannot ban this player!"
  245. else:
  246. kick arg 2 due to "{@banmsg}"
  247. ban arg 2 due to "{@banmsg}"
  248. if {@broadcastban} is true:
  249. broadcast "{@logo} &a%arg 2% &ewas banned by &a%player% &efor &c%arg 3%"
  250. stop
  251. if arg 1 is "kick":
  252. if arg 2 is set:
  253. if arg 3 is set:
  254. if arg 2 has permission "guardian.bypass":
  255. message "{@logo} &cYou cannot kick this player!"
  256. else:
  257. kick arg 2 due to "{@logo} &cYou have been kicked by &e%player%! &aReason: &e%arg 3%"
  258. if {@broadcastkick} is true:
  259. broadcast "{@logo} &a%arg 2% &ewas kicked by &a%player% &efor &c%arg 3%"
  260. if arg 1 is "reset":
  261. if arg 2 is set:
  262. set {killaura.%arg 2%} to 0
  263. set {multiaura.%arg 2%} to 0
  264. set {antikb.%arg 2%} to 0
  265. set {fastplace.%arg 2%} to 0
  266. set {fastbreak.%arg 2%} to 0
  267. set {fly.%arg 2%} to 0
  268. set {jesus.%arg 2%} to 0
  269. set {banned.%arg 2%} to false
  270. message "{@logo} &aReset stats of player!"
  271. execute console command "/unban %arg 2%"
  272. stop
  273. if arg 1 is "unban":
  274. if arg 2 is set:
  275. set {killaura.%arg 2%} to 0
  276. set {multiaura.%arg 2%} to 0
  277. set {antikb.%arg 2%} to 0
  278. set {fastplace.%arg 2%} to 0
  279. set {fastbreak.%arg 2%} to 0
  280. set {fly.%arg 2%} to 0
  281. set {jesus.%arg 2%} to 0
  282. set {banned.%arg 2%} to false
  283. execute console command "/unban %arg 2%"
  284. broadcast "{@logo} &a%arg 2% &ewas unbanned by &a%player%!"
  285.  
  286. #====================================================================================================
  287. # Kill Aura
  288. #====================================================================================================
  289. on damage:
  290. if {@killaura} is true:
  291. attacker is a player:
  292. if victim is a player:
  293. if damage cause is not a projectile:
  294. if tool of the attacker is a bow:
  295. stop
  296. if tool of the attacker is a snowball:
  297. stop
  298. if tool of the attacker is a egg:
  299. stop
  300. if tool of the attacker is a ender pearl:
  301. stop
  302. if tool of the attacker is a fishing rod:
  303. set {fishingrod.%attacker%} to 10
  304. stop
  305. else:
  306. if {fishingrod.%attacker%} is higher than 0:
  307. stop
  308. else:
  309. add 1 to {dmg.%attacker%}
  310. if distance between attacker and victim is greater than 5:
  311. cancel event
  312. if {@auraban} is true:
  313. add 1 to {killaura.%attacker%}
  314. loop all players:
  315. if {@onlyinstaff} is true:
  316. if {guardianstaffmode.%loop-player%} is true:
  317. send "{@logo} &c%attacker% &eMight be using &cKill Aura&e!" to loop-player
  318. else:
  319. if loop-player has permission "guardian.notify":
  320. send "{@logo} &c%attacker% &eMight be using &cKill Aura&e!" to loop-player
  321. stop
  322.  
  323. on damage:
  324. if tool of the attacker is a sword:
  325. attacker is blocking
  326. cancel event
  327.  
  328. every second:
  329. if {@killaura} is true:
  330. loop all players:
  331. if {dmg.%loop-player-1%} is less than or equal to 20:
  332. set {dmg.%loop-player-1%} to 0
  333. stop
  334. if {dmg.%loop-player-1%} is higher than 20:
  335. set {dmg.%loop-player-1%} to 0
  336. add 1 to {killaura.%loop-player-1%}
  337. loop all players:
  338. if {@onlyinstaff} is true:
  339. if {guardianstaffmode.%loop-player-2%} is true:
  340. send "{@logo} &c%loop-player-1% &eMight be using &cKill Aura&e!" to loop-player-2
  341. else:
  342. if loop-player-2 has permission "guardian.notify":
  343. send "{@logo} &c%loop-player-1% &eMight be using &cKill Aura&e!" to loop-player-2
  344. stop
  345. #====================================================================================================
  346. # Multi Aura
  347. #====================================================================================================
  348. on damage:
  349. if {@multiaura} is true:
  350. if attacker is a player:
  351. if {victim.%attacker%} is not set:
  352. set {_victim} to victim
  353. set {multichecker.%attacker%} to 5
  354. stop
  355. if {_victim} is set:
  356. if "%name of victim%" is not {_victim}:
  357. if {multichecker.%attacker%} is higher than 0:
  358. add 1 to {multiaura.%attacker%}
  359. loop all players:
  360. if {@onlyinstaff} is true:
  361. if {guardianstaffmode.%loop-player%} is true:
  362. send "{@logo} &c%attacker% &eMight be using &cMulti Aura&e!" to loop-player
  363. else:
  364. if loop-player has permission "guardian.notify":
  365. send "{@logo} &c%attacker% &eMight be using &cMulti Aura&e!" to loop-player
  366. else:
  367. stop
  368. else:
  369. stop
  370. else:
  371. stop
  372. else:
  373. stop
  374.  
  375. every tick:
  376. loop all players:
  377. if {multichecker.%loop-player%} is higher than 0:
  378. remove 1 from {multichecker.%loop-player%}
  379. stop
  380. else:
  381. stop
  382. #====================================================================================================
  383. # Anti Knockback | BETA
  384. #====================================================================================================
  385.  
  386. on damage of a player:
  387. if {@antikb} is true:
  388. if victim's gamemode is survival or adventure:
  389. set {_loc1} to location of victim
  390. wait 10 ticks
  391. set {_loc2} to location of victim
  392. block at victim is not cobweb:
  393. victim is not riding:
  394. loop blocks in radius 2 around victim:
  395. loop-block is air:
  396. distance between {_loc1} and {_loc2} = 0:
  397. add 1 to {antikb.%attacker%}
  398. loop all players:
  399. if {@onlyinstaff} is true:
  400. if {guardianstaffmode.%loop-player%} is true:
  401. send "{@logo} &c%attacker% &eMight be using &cAnti Knockback&e!" to loop-player
  402. else:
  403. if loop-player has permission "guardian.notify":
  404. send "{@logo} &c%attacker% &eMight be using &cAnti Knockback&e!" to loop-player
  405. else:
  406. stop
  407. else:
  408. stop
  409. else:
  410. stop
  411. else:
  412. stop
  413.  
  414. #====================================================================================================
  415. # Regen | Fast Eat
  416. #====================================================================================================
  417.  
  418. on consume:
  419. if {@regen} is true:
  420. if player does not have permission "guardian.regen":
  421. if difference between {heal.%player%} and now is less than 2 ticks:
  422. cancel event
  423. set {heal.%player%} to now
  424. stop
  425. set {heal.%player%} to now
  426.  
  427. on consume:
  428. if {@fasteat} is true:
  429. if player does not have permission "guardian.fasteat":
  430. if difference between {eat.%player%} and now is less than 2 ticks:
  431. cancel event
  432. set {eat.%player%} to now
  433. stop
  434. set {eat.%player%} to now
  435.  
  436.  
  437. #====================================================================================================
  438. # Fast Place/Break
  439. #====================================================================================================
  440.  
  441. on place:
  442. if {@fastplace} is true:
  443. if difference between {fastplacetest.%player%} and now is less than 1 tick:
  444. cancel event
  445. add 1 to {fastplace.%player%}
  446. loop all players:
  447. if {@onlyinstaff} is true:
  448. if {guardianstaffmode.%loop-player%} is true:
  449. send "{@logo} &c%player% &eMight be using &cFast Place&e!" to loop-player
  450. else:
  451. if loop-player has permission "guardian.notify":
  452. send "{@logo} &c%player% &eMight be using &cFast Place&e!" to loop-player
  453. stop
  454. set {fastplacetest.%player%} to now
  455.  
  456. on break:
  457. if {@fastbreak} is true:
  458. if difference between {fastbreaktest.%player%} and now is less than 1 tick:
  459. cancel event
  460. add 1 to {fastbreak.%player%}
  461. loop all players:
  462. if {@onlyinstaff} is true:
  463. if {guardianstaffmode.%loop-player%} is true:
  464. send "{@logo} &c%player% &eMight be using &cFast Break&e!" to loop-player
  465. else:
  466. if loop-player has permission "guardian.notify":
  467. send "{@logo} &c%player% &eMight be using &cFast Break&e!" to loop-player
  468. stop
  469. set {fastbreaktest.%player%} to now
  470. #====================================================================================================
  471. # Fly/Jesus [BETA]
  472. #====================================================================================================
  473.  
  474. on any movement:
  475. if player's gamemode is not creative:
  476. if player's fly mode is not true:
  477. if {@fly} is true:
  478. if block 0.1 below the player is air:
  479. if {flytest.%player%} is set:
  480. set {_y} to y coordinate of location of player
  481. set {_ry} to rounded up {_y}
  482. set {_check} to "%{_ry}-{_y}%"
  483. if player doesn't have jump boost:
  484. if {_check} is not "0.47" or "0.45" or "0.63" or "0.72" or "0.2" or "0.18" or "0.68" or "0.6" or "0.3" or "0.38" or "0.87" or "0.94" or "0.77" or "0.55" or "0.8" or "0.69" or "0.97" or "0.81" or "0.74" or "0.82" or "0.85" or "0.62" or "0.61" or "0.79" or "0.53" or "0.66" or "0.88" or "0.42" or "0.39" or "0.44" or "0.57" or "0.64" or "0.02" or "0.84" or "0.9" or "0.52" or "0.48" or "0.51" or "0.49" or "0.43" or "0.23" or "0.11" or "0.07" or "0.12" or "0.24" or "0.43" or "0.7" or "0.36" or "0.17" or "0.06" or "0.04" or "0.09" or "0.14" or "0.86" or "0.67" or "0.56" or "0.54" or "0.59" or "0.73" or "0.9" or "0.58" or "0.34" or "0.21" or "0.08" or "0.48" or "0.71" or "0.5" or "0.75" or "0.83" or "0" or "1" or "0.33" or "0.25" or "0.46" or "0.98":
  485. if {flytest.%player%} is less than {_y}:
  486. add 1 to {fly.%player%}
  487. set {_found} to true
  488. if {_y} is {flytest.%player%}:
  489. if {_check} is not "0.21" or "0.98" or "0.9" or "1" or "0.83" or "0.58" or "0.75" or "0.74" or "0.25" or "0.5" or "0":
  490. add 1 to {fly.%player%}
  491. loop all players:
  492. if {@onlyinstaff} is true:
  493. if {guardianstaffmode.%loop-player%} is true:
  494. send "{@logo} &c%player% &eMight be using &cFly&e!" to loop-player
  495. stop
  496. else:
  497. if loop-player has permission "guardian.notify":
  498. send "{@logo} &c%player% &eMight be using &cFly&e!" to loop-player
  499. stop
  500.  
  501. if {@jesus} is true:
  502. if block 0.25 below the player or block 1 below the player or block 0.5 below the player or block 0.75 below the player is water:
  503. if block 0.25 above the player is air:
  504. set {_y} to y coordinate of location of player
  505. set {_ry} to rounded up {_y}
  506. set {_check} to "%{_ry}-{_y}%"
  507. if {_check} is not "0.16" or "0.12" or "0.1" or "0.04" or "0.93" or "0.78" or "0.61" or "0.96" or "0.19" or "0.24" or "0.54" or "0.76" or "0.02" or "0.86" or "0.44" or "0.47" or "0.14" or "0.07" or "0.68" or "0.64" or "0.85" or "0.15" or "0.48" or "0.06" or "0.49" or "0.62" or "0.43" or "0.13" or "0.84" or "0.51" or "0.69" or "0.74" or "0.75" or "0.58" or "1" or "0.57" or "0.7" or "0.21" or "0.97" or "0.81" or "0.77" or "0.22" or "0.03" or "0.91" or "0.08" or "0.79" or "0.18" or "0.98" or "0.83" or "0.82" or "0.2" or "0.46" or "0.42" or "0.77" or "0.65" or "0.66" or "0.92" or "0.71" or "0.88" or "0.67" or "0.6" or "0.55" or "0.52" or "0.9" or "0.23" or "0.5" or "0.53" or "0.56" or "0.25":
  508. if {_check} is "0":
  509. set {_x} to rounded down x coordinate of location of player-1
  510. set {_y} to rounded down y coordinate of location of player
  511. set {_z} to rounded down z coordinate of location of player-1
  512. set {_loc} to location at {_x}, {_y}, {_z} in player's world
  513. if block at {_loc} is not water:
  514. set {_failed} to true
  515. if {_failed} is not set:
  516. add 1 to {jesustest.%player%}
  517. if {jesustest.%player%} is more than 0:
  518. clear {jesustest.%player%}
  519. if block 0.05 above the player is air:
  520. add 1 to {jesus.%player%}
  521. if {SkCheat.jesus.notify::%uuid of player%} is not set:
  522. set {SkCheat.jesus.notify::%uuid of player%} to now
  523. if {jesus.%player%} is greater than 3:
  524. loop all players:
  525. if {@onlyinstaff} is true:
  526. if {guardianstaffmode.%loop-player%} is true:
  527. send "{@logo} &c%player% &eMight be using &cJesus&e!" to loop-player
  528. stop
  529. else:
  530. if loop-player has permission "guardian.notify":
  531. send "{@logo} &c%player% &eMight be using &cJesus&e!" to loop-player
  532. stop
  533. else:
  534. wait 2 seconds
  535. if {jesustest.%player%} is more than 0:
  536. remove 1 from {jesustest.%player%}
  537. set {flytest.%player%} to y coordinate of location of player
  538.  
  539. #====================================================================================================
  540. # Banwaves
  541. #====================================================================================================
  542.  
  543. command /elder [<text>] [<player>] [<text>]:
  544. permission: guardian.elder
  545. trigger:
  546. if arg 1 is not set:
  547. message "&b&m============================="
  548. message "{@logo} &f/elder settp"
  549. message "{@logo} &f/elder setguardian"
  550. message "{@logo} &f/elder ban <player> <reason>"
  551. message "&b&m============================="
  552. if arg 1 is "help":
  553. message "&b&m============================="
  554. message "{@logo} &f/elder settp"
  555. message "{@logo} &f/elder setguardian"
  556. message "{@logo} &f/elder ban <player> <reason>"
  557. message "&b&m============================="
  558. if arg 1 is "settp":
  559. set {tp.guardian} to location of player
  560. message "{@logo} &aSuccessfully placed &6Tp Location&a!"
  561. if arg 1 is "setguardian":
  562. set {elder.guardian} to location of player
  563. message "{@logo} &aSuccessfully placed &6Guardian Location&a!"
  564. if arg 1 is "ban":
  565. if arg 2 is set:
  566. if arg 3 is set:
  567. if arg 2 does not have permission "guardian.bypass":
  568. teleport arg 2 to {tp.guardian}
  569. set {reason.%arg 2%} to arg 3
  570. wait 3 ticks
  571. spawn an elder guardian at {elder.guardian}
  572. set the name of the last spawned entity to "&3Guardian"
  573. apply strength 200 to last spawned entity
  574. apply slowness 200 to last spawned entity
  575. apply water breathing 200 to last spawned entity
  576. apply resistance 200 to last spawned entity
  577. set {dban.%arg 2%} to true
  578. set {guardian.kill} to true
  579. stop
  580.  
  581. every second:
  582. if {guardian.kill} is true:
  583. loop all entities:
  584. if "%name of loop-entity%" is "&3Guardian":
  585. kill loop-entity
  586. set {guardian.kill} to false
  587. stop
  588. else:
  589. stop
  590.  
  591. on any movement:
  592. if {dban.%player%} is true:
  593. cancel event
  594.  
  595. on damage:
  596. if victim is a player:
  597. if {dban.%victim%} is true:
  598. set {_attacker} to the attacker
  599. kill {_attacker}
  600. kick victim due to "{@logo} &cYou are banned! Reason: &e%{reason.%victim%}%&c!"
  601. set {banned.%victim%} to true
  602. broadcast "{@logo} &a%victim% &eis banned by &3&lGuardian &efor &c%{reason.%victim%}%"
  603. set {dban.%victim%} to false
  604. execute console command "/guardian ban %victim%"
  605. else:
  606. stop
  607.  
  608. on quit:
  609. if {dban.%player%} is true:
  610. set {banned.%player%} to true
  611. broadcast "{@logo} &a%player% &eis banned by &3&lGuardian &efor &c%{reason.%player%}%"
  612. set {dban.%player%} to false
  613. execute console command "/guardian ban %player%"
  614.  
  615. every 10 seconds:
  616. if {@banwave} is true:
  617. loop all players:
  618. if {@custombanning} is false:
  619. if {@animated} is true:
  620. #---------------------------------------------------------------------------------------------
  621. if {killaura.%loop-player%} is greater or equal to {@killauradetect}:
  622. execute console command "elder ban %loop-player% KillAura"
  623. #---------------------------------------------------------------------------------------------
  624. if {multiaura.%loop-player%} is greater or equal to {@multiauradetect}:
  625. execute console command "elder ban %loop-player% MultiAura"
  626. #---------------------------------------------------------------------------------------------
  627. if {antikb.%loop-player%} is greater or equal to {@antikbdetect}:
  628. execute console command "elder ban %loop-player% AntiKB"
  629. #---------------------------------------------------------------------------------------------
  630. if {fastplace.%loop-player%} is greater or equal to {@fastplacecheck}:
  631. execute console command "elder ban %loop-player% FastPlace"
  632. #---------------------------------------------------------------------------------------------
  633. if {fastbreak.%loop-player%} is greater or equal to {@fastbreakcheck}:
  634. execute console command "elder ban %loop-player% FastBreak"
  635. else:
  636. #---------------------------------------------------------------------------------------------
  637. if {killaura.%loop-player%} is greater or equal to {@killauradetect}:
  638. execute console command "guardian ban %loop-player% KillAura"
  639. #---------------------------------------------------------------------------------------------
  640. if {multiaura.%loop-player%} is greater or equal to {@multiauradetect}:
  641. execute console command "guardian ban %loop-player% MultiAura"
  642. #---------------------------------------------------------------------------------------------
  643. if {antikb.%loop-player%} is greater or equal to {@antikbdetect}:
  644. execute console command "guardian ban %loop-player% AntiKB"
  645. #---------------------------------------------------------------------------------------------
  646. if {fastplace.%loop-player%} is greater or equal to {@fastplacecheck}:
  647. execute console command "guardian ban %loop-player% FastPlace"
  648. #---------------------------------------------------------------------------------------------
  649. if {fastbreak.%loop-player%} is greater or equal to {@fastbreakcheck}:
  650. execute console command "guardian ban %loop-player% FastBreak"
  651. else:
  652. #---------------------------------------------------------------------------------------------
  653. if {killaura.%loop-player%} is greater or equal to {@killauradetect}:
  654. execute console command "{@custombancmd}"
  655. #---------------------------------------------------------------------------------------------
  656. if {multiaura.%loop-player%} is greater or equal to {@multiauradetect}:
  657. execute console command "{@custombancmd}"
  658. #---------------------------------------------------------------------------------------------
  659. if {antikb.%loop-player%} is greater or equal to {@antikbdetect}:
  660. execute console command "{@custombancmd}"
  661. #---------------------------------------------------------------------------------------------
  662. if {fastplace.%loop-player%} is greater or equal to {@fastplacecheck}:
  663. execute console command "{@custombancmd}"
  664. #---------------------------------------------------------------------------------------------
  665. if {fastbreak.%loop-player%} is greater or equal to {@fastbreakcheck}:
  666. execute console command "{@custombancmd}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement