This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGUARD (2).sk
2046 lines (1935 loc) · 76.9 KB
/
GUARD (2).sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#-------------------------------------------
# G U A R D
# A N T I C H E A T
# V E R S I O N : B1
# A U T H O R : XIII___
#-------------------------------------------
options:
guard: &5&lGUARD &8»&d
Version: B1
Ban: false #IF KICK IS TRUE MAKE BAN FALSE !
Kick: true #IF BAN IS TRUE MAKE KICK FALSE !
setback: false
AntiAlt: false
AntiBot: false
test: true
#CORE
on join:
delete {guard.%player%.vl}
on load:
Reload("console")
every 30 seconds:
loop all players:
set {guard.%loop-player%.vl} to 0
command /guard [<text>] [<player>] [<timespan>]:
permission: guard
trigger:
if arg 1 is not set:
send " {@guard}"
send "&7/guard &8| &fShow this pop up"
send "&7/guard version &8| &fShow guard version"
send "&7/guard notify &8| &fToggle guard alerts"
send "&7/guard setback &8| &fToggle setback"
send "&7/guard damage &8| &fToggle damage lagback"
send "&7/guard downwards &8| &fToggle downwards lagback"
send "&7/guard void &8| &fToggle void lagback"
send ""
stop
if arg 1 is "verbose":
if {@test} is true:
send "{@guard} Sorry but no"
stop
if {guard.%player%.verbose} is not set:
set {guard.%player%.verbose} to false
if {guard.%player%.verbose} is false:
set {guard.%player%.verbose} to true
send "{@guard} Verbose enabled"
stop
if {guard.%player%.verbose} is true:
set {guard.%player%.verbose} to false
send "{@guard} Verbose disabled"
stop
if arg 1 is "kick":
if {@test} is true:
if executor is player:
send "{@guard} Sorry but no"
stop
if {@test} is true:
send title "&cYou would be kicked now" with subtitle "&5&lGUARD &8»&d Unfair Advantage" to arg 2
stop
if arg 2 is set:
if {banning.%arg 2%} is true:
stop
set {banning.%arg 2%} to true
set fly mode of arg-2 to true
wait 2 ticks
push arg-2 upwards at speed 1
wait 1 seconds
strike lightning effect at arg-2
delete {banning.%arg 2%}
kick arg 2 due to "{@guard} &fGuard caught you cheating (AntiCheat) ! &7You can rejoin using /join VACDev &7&o&n(ID-G%random integer between 0 and 99999999999%&7)"
broadcast ""
broadcast "{@guard} &c%arg 2%&f has been removed for &cUnfair Advantage"
broadcast ""
if arg 1 is "info":
if arg 2 is set:
send " {@guard}"
send "&fInformations about %arg 2%"
send ""
send "Anticheat Kicks: &7%{guard.%arg 2%.kick}%"
send "Anticheat Ban: &7%{guard.%arg 2%.kick}%"
send "Anticheat logs: &7%{guard.%arg 2%.total.vl}%"
send "Anticheat detection: &7%{guard.%arg 2%.detection::*}%"
send ""
stop
if arg 1 is "version":
send "{@guard} Build: b15"
stop
if arg 1 is "reload":
Reload("console")
send "{@guard} guard has been reloaded."
stop
if arg 1 is "notify":
if {guard.%player%.alerts} is not set:
set {guard.%player%.alerts} to false
if {guard.%player%.alerts} is false:
set {guard.%player%.alerts} to true
send "{@guard} Notifcations enabled"
stop
if {guard.%player%.alerts} is true:
set {guard.%player%.alerts} to false
send "{@guard} Notifcations disabled"
stop
if arg 1 is "ban":
if arg 2 is set:
if {@test} is true:
send "{@guard} Sorry but no"
stop
if {tempban.time::%{_player}%} is not set:
broadcast ""
broadcast "{@guard} &c%arg 2%&f has been removed for &cUnfair Advantage"
broadcast ""
set {tempban.time::%arg 2%} to arg 3
set {tempban.%arg 2%} to true
set {tempban.timestamp::%arg 2%} to now
kick arg 2 due to "{@guard} &cYou have been banned for &e%{tempban.time::%arg 2%}% &cfrom this server !"
stop
if arg 1 is "unban":
if {@test} is true:
send "{@guard} Sorry but no"
stop
if arg 2 is set:
clear {tempban.time::%arg 2%}
clear {tempban.timestamp::%arg 2%}
clear {tempban.%arg 2%}
send "{@guard} %arg 2% has been unbanned."
stop
if arg 1 is "setback":
if {@test} is true:
if {setback.custom.%player%} is not set:
set {setback.custom.%player%} to false
if {setback.custom.%player%} is true:
set {setback.custom.%player%} to false
send "{@guard} Setback disabled."
stop
if {setback.custom.%player%} is false:
set {setback.custom.%player%} to true
send "{@guard} Setback enabled."
stop
if arg 1 is "damage":
if {@test} is true:
if {damage.%player%} is not set:
set {damage.%player%} to false
if {damage.%player%} is true:
set {damage.%player%} to false
send "{@guard} Damage disabled."
stop
if {damage.%player%} is false:
set {damage.%player%} to true
send "{@guard} Damage enabled."
stop
if arg 1 is "downwards":
if {@test} is true:
if {down.%player%} is not set:
set {down.%player%} to false
if {down.%player%} is true:
set {down.%player%} to false
send "{@guard} Downwards disabled."
stop
if {down.%player%} is false:
set {down.%player%} to true
send "{@guard} Downwards enabled."
stop
if arg 1 is "void":
if {@test} is true:
if {void.%player%} is not set:
set {void.%player%} to false
if {void.%player%} is true:
set {void.%player%} to false
send "{@guard} Void disabled."
stop
if {void.%player%} is false:
set {void.%player%} to true
send "{@guard} Void enabled."
stop
if arg 1 is "test":
if {@test} is true:
if {test.%player%} is not set:
set {test.%player%} to false
if {test.%player%} is true:
set {test.%player%} to false
send "{@guard} Test disabled."
stop
if {test.%player%} is false:
set {test.%player%} to true
send "{@guard} Test enabled."
stop
on join:
set fly mode of player to false
function Reload(p: text):
if {guard.check.ILLEGAL} is not set:
set {guard.check.ILLEGAL} to true
if {guard.check.Autoclicker} is not set:
set {guard.check.Autoclicker} to true
if {guard.check.Criticals} is not set:
set {guard.check.Criticals} to true
if {guard.check.Reach} is not set:
set {guard.check.Reach} to true
if {guard.check.Velocity} is not set:
set {guard.check.Velocity} to true
if {guard.check.Bhop} is not set:
set {guard.check.Bhop} to true
if {guard.check.Blink} is not set:
set {guard.check.Blink} to true
if {guard.check.ClickTP} is not set:
set {guard.check.ClickTP} to true
if {guard.check.Flight} is not set:
set {guard.check.Flight} to true
if {guard.check.Float} is not set:
set {guard.check.Float} to true
if {guard.check.HighJump} is not set:
set {guard.check.HighJump} to true
if {guard.check.Hover} is not set:
set {guard.check.Hover} to true
if {guard.check.Jesus} is not set:
set {guard.check.Jesus} to true
if {guard.check.NoFall} is not set:
set {guard.check.NoFall} to true
if {guard.check.NoSlow} is not set:
set {guard.check.NoSlow} to true
if {guard.check.Scaffold} is not set:
set {guard.check.Scaffold} to true
if {guard.check.Speed} is not set:
set {guard.check.Speed} to true
if {guard.check.Spider} is not set:
set {guard.check.Spider} to true
if {guard.check.Step} is not set:
set {guard.check.Step} to true
on join:
if {ip.%player%} is not set:
remove player from {altip.%ip of player%::*}
wait 1 tick
add player to {altip.%ip of player%::*}
set {ip.%player%} to ip of player
if {firstalt.%ip of player%} is not set:
remove player from {altip.%ip of player%::*}
wait 1 tick
add player to {altip.%ip of player%::*}
set {firstalt.%ip of player%} to player's name
else:
remove "%player%" from {altip.%ip of player%::*}
wait 1 tick
add player to {altip.%ip of player%::*}
if {firstalt.%ip of player%} is set:
set {_name} to player's name
if {_name} is {firstalt.%ip of player%}:
stop
else:
if player doesn't have permission "op":
kick player due to "{@guard} &cComprimised Account detected."
broadcast "{@guard} &c%player% &fhas been removed by &5&lGUARD &freason : Comprimised Account"
if {_name} is banned:
make server execute command "/vacban %{_name}% Ban Evading"
on load:
Reload("console")
on join:
delete {check.%player%}
delete {legtifly.%player%}
delete {bot.%player%}
delete {spam.%player%}
delete {lnc.%player%}
delete {ctr.%player%}
delete {botcheck::%player%}
delete {%player%.guard.telport}
delete {%player%.guard.flight.delay}
delete {%player%.guard.nochecks}
delete {%player%.guard.epteleport}
delete {dead.%player%}
delete {GUARD}
set fly mode of player to false
delete {%player%.guard.damage}
delete {%player%.guard.jump}
delete {%player%.guard.slime}
delete {%player%.guard.bypass}
delete {%player%.guard.cheat.cooldown}
delete {%player%.guard.falldmg}
delete {%player%.guard.jump}
delete {%player%.guard.slime}
delete {%player%.guard.fix.slime}
set {legitfly.%player%} to false
on any move:
if block under player is not air:
set {guard.%player%.setback} to player's location
function maybe(p: player, cheat: text, type: text):
if {teleport.%{_p}%} is true:
stop
if {_p} is citizen:
stop
add 1 to {guard.%{_p}%.vl.%{_cheat}%}
if {ac.guard.%{_p}%} is true:
send "{@guard} &d&o%{_p}%&7 is &nmaybe&7 using &d&o%{_cheat}% &7(&d%{_type}%&7) VL(&d%{guard.%{_p}%.vl.%{_cheat}%}%&7)" to {_p}
loop all players:
if {guard.%loop-player%.alerts} is true:
send "{@guard} &d&o%{_p}%&7 is &nmaybe&7 using &d&o%{_cheat}% &7(&d%{_type}%&7) VL(&d%{guard.%{_p}%.vl.%{_cheat}%}%&7)" to loop-player
if {guard.%{_p}%.vl.%{_cheat}%} >= 50:
if {@test} is true:
send title "&cYou would be kicked now" with subtitle "&5&lGUARD &7»&d Unfair Advantage" to {_p}
set {guard.%{_p}%.vl.%{_cheat}%} to 0
if {@Kick} is true:
make server execute command "/guard kick %{_p}%"
stop
if {@Ban} is true:
make server execute command "/guard ban %{_p}% 7 day"
function clearly(p: player, cheat: text, type: text):
if {teleport.%{_p}%} is true:
stop
if {_p} is citizen:
stop
add 1 to {guard.%{_p}%.vl.%{_cheat}%}
if {ac.guard.%{_p}%} is true:
send "{@guard} &d&o%{_p}%&7 is &nclearly&7 using &d&o%{_cheat}% &7(&d%{_type}%&7) VL(&d%{guard.%{_p}%.vl.%{_cheat}%}%&7)" to {_p}
loop all players:
if {guard.%loop-player%.alerts} is true:
send "{@guard} &d&o%{_p}%&7 is &nclearly&7 using &d&o%{_cheat}% &7(&d%{_type}%&7) VL(&d%{guard.%{_p}%.vl.%{_cheat}%}%&7)" to loop-player
execute command "/wdr2 %{_p}%"
if {setback.custom.%{_p}%} is true:
teleport {_p} to {guard.%{_p}%.setback}
if {damage.%{_p}%} is true:
if {guard.%{_p}%.vl.%{_cheat}%} >= 10:
damage {_p} by 4 hearts
if {down.%{_p}%} is true:
if {guard.%{_p}%.vl.%{_cheat}%} >= 10:
set {_loc} to location of {_p}
remove 2 from y location of {_loc}
if block 2 under {_p} is air:
if block under {_p} is air:
teleport {_p} to {_loc}
if {void.%{_p}%} is true:
if {guard.%{_p}%.vl.%{_cheat}%} >= 10:
set {_loc} to location of {_p}
set y location of {_loc} to -300
teleport {_p} to {_loc}
if {test.%{_p}%} is true:
if {ac.guard.%{_p}%} is not true:
stop
if {guard.%{_p}%.vl.%{_cheat}%} >= 1:
loop 10 times:
teleport {_p} to {guard.%{_p}%.setback}
wait 2 tick
push {_p} forwards at speed 10
teleport {_p} to {guard.%{_p}%.setback}
damage {_p} by 1 heart
wait 1 ticks
if {guard.%{_p}%.vl.%{_cheat}%} >= 25:
if {@test} is true:
send title "&cYou would be kicked now" with subtitle "&5&lGUARD &7»&d Unfair Advantage" to {_p}
set {guard.%{_p}%.vl.%{_cheat}%} to 0
if {@Kick} is true:
make server execute command "/guard kick %{_p}%"
stop
if {@Ban} is true:
make server execute command "/guard ban %{_p}% 7 day"
#--------------------------------------------------------
#
# A N T I W A T E R W A L K / J E S U S
#
#--------------------------------------------------------
on walk on water:
if {guard.check.JESUS} is false:
stop
player's gamemode is not creative
player is not riding
player is not sneaking
if block below player is water:
if block south below player is water:
if block north below player is water:
if block west below player is water:
if block east below player is water:
if block south player is air:
if block north player is air:
if block west player is air:
block east player is air
add 2 to {Alerte.Jesus.%player%}
if {Alerte.Jesus.%player%} > 25:
#add 1 to {guard.%player%.total.vl}
clearly(player, "Jesus", "1A")
if {@Kick} is true:
make server execute command "/guard kick %player%"
stop
if {@Ban} is true:
make server execute command "/guard ban %player% 7 day"
if {Alerte.Jesus.%player%} > 19:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "2A")
if {Alerte.Jesus.%player%} > 14:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "3A")
on any move:
if {guard.check.JESUS} is false:
stop
if player's gamemode is not creative:
if player is sneaking:
stop
else:
if block below player is water:
if block south below player is water:
if block north below player is water:
if block west below player is water:
if block east below player is water:
if block south player is air:
if block north player is air:
if block west player is air:
block east player is air
add 1 to {Alerte.Jesus.%player%}
if {Alerte.Jesus.%player%} > 25:
#add 1 to {guard.%player%.total.vl}
clearly(player, "Jesus", "1B")
if {@Kick} is true:
make server execute command "/guard kick %player%"
stop
if {@Ban} is true:
make server execute command "/guard ban %player% 7 day"
if {Alerte.Jesus.%player%} > 19:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "2C")
if {Alerte.Jesus.%player%} > 14:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "3C")
every 8 second:
loop all players:
clear {Alerte.Jesus.%loop-player%}
on jump:
if {guard.check.JESUS} is false:
stop
if block below player is water:
if block south below player is water:
if block north below player is water:
if block west below player is water:
if block east below player is water:
if block south player is air:
if block north player is air:
if block west player is air:
block east player is air
add 3 to {Alerte.Jesus.%player%}
if {Alerte.Jesus.%player%} > 25:
#add 1 to {guard.%player%.total.vl}
clearly(player, "Jesus", "1C")
if {@Kick} is true:
make server execute command "/guard kick %player%"
stop
if {@Ban} is true:
make server execute command "/guard ban %player% 7 day"
if {Alerte.Jesus.%player%} > 19:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "2C")
if {Alerte.Jesus.%player%} > 14:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "3C")
on walk on lava:
if {guard.check.JESUS} is false:
stop
player's gamemode is not creative
player is not riding
player is not sneaking
if block below player is lava:
if block south below player is lava:
if block north below player is lava:
if block west below player is lava:
if block east below player is lava:
if block south player is air:
if block north player is air:
if block west player is air:
block east player is air
add 2 to {Alerte.Jesus.%player%}
if {Alerte.Jesus.%player%} > 25:
#add 1 to {guard.%player%.total.vl}
clearly(player, "Jesus", "1D")
if {@Kick} is true:
make server execute command "/guard kick %player%"
stop
if {@Ban} is true:
make server execute command "/guard ban %player% 7 day"
if {Alerte.Jesus.%player%} > 19:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "2D")
if {Alerte.Jesus.%player%} > 14:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "3D")
on any move:
if {guard.check.JESUS} is false:
stop
if player's gamemode is not creative:
if player is sneaking:
stop
else:
if block below player is lava:
if block south below player is lava:
if block north below player is lava:
if block west below player is lava:
if block east below player is lava:
if block south player is air:
if block north player is air:
if block west player is air:
block east player is air
add 1 to {Alerte.Jesus.%player%}
if {Alerte.Jesus.%player%} > 25:
#add 1 to {guard.%player%.total.vl}
clearly(player, "Jesus", "1E")
if {@Kick} is true:
make server execute command "/guard kick %player%"
stop
if {@Ban} is true:
make server execute command "/guard ban %player% 7 day"
if {Alerte.Jesus.%player%} > 19:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "2E")
if {Alerte.Jesus.%player%} > 14:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "3E")
every 8 second:
loop all players:
clear {Alerte.Jesus.%loop-player%}
on jump:
if {guard.check.JESUS} is false:
stop
if block below player is lava:
if block south below player is lava:
if block north below player is lava:
if block west below player is lava:
if block east below player is lava:
if block south player is air:
if block north player is air:
if block west player is air:
block east player is air
add 3 to {Alerte.Jesus.%player%}
if {Alerte.Jesus.%player%} > 25:
#add 1 to {guard.%player%.total.vl}
clearly(player, "Jesus", "1F")
if {@Kick} is true:
make server execute command "/guard kick %player%"
stop
if {@Ban} is true:
make server execute command "/guard ban %player% 7 day"
if {Alerte.Jesus.%player%} > 19:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "2F")
if {Alerte.Jesus.%player%} > 14:
#add 1 to {guard.%player%.total.vl}
maybe(player, "Jesus", "3F")
#--------------------------------------------------------
#
# A N T I A U T O C L I C K E R
#
#--------------------------------------------------------
on leftclick:
if {guard.check.AUTOCLICKER} is true:
add 1 to {cpsL.%player%}
if {cpsL.%player%} >= 20:
cancel event
#OLD VL COUNTER
#add 1 to {guard.%player%.total.vl}
maybe(player, "AutoClicker", "1A")
if {guard.%player%.vl.AutoClicker} >= 5:
clearly(player, "AutoClicker", "1A")
every 1 second:
loop all players:
clear {cpsL.%loop-player%}
clear {cpsR.%loop-player%}
on rightclick:
if {guard.check.AUTOCLICKER} is true:
add 1 to {cpsR.%player%}
if {cpsL.%player%} >= 20:
cancel event
maybe(player, "AutoClicker", "1B")
#OLD VL COUNTER
#add 1 to {guard.%player%.total.vl}
if {guard.%player%.vl.AutoClicker} >= 5:
clearly(player, "AutoClicker", "1B")
#--------------------------------------------------------
#
# A N T I K I L L A U R A
#
#--------------------------------------------------------
on npc left click:
if {check.%player%} is true:
add 1 to {bost.%player%}
if {guard.%player%.vl.Killaura} < 3:
maybe(player,"KillAura", "1E")
else:
clearly(player,"KillAura", "1E")
stop
on damage:
if attacker is player:
if target of attacker is not victim:
if target of attacker is not victim:
if target of attacker is not victim:
add 1 to {countk.%attacker%}
if {countk.%attacker%} >= 2:
clearly(attacker, "HitBox", "1A")
execute command "/wdr %attacker%"
cancel event
every 1 second:
loop all players:
clear {combo.%loop-player%}
clear {countk.%loop-player%}
on damage:
if {guard.check.KILLAURA} is true:
if attacker is player:
add 0.5 to {combo.%attacker%}
if {combo.%attacker%} >= 2:
#add 1 to {guard.%attacker%.total.vl}
cancel event
maybe(attacker, "KillAura", "1A")
execute command "/wdr %attacker%"
if {@setback} is true:
cancel event
on damage:
if {guard.check.KILLAURA} is false:
stop
if attacker is a player:
loop all blocks in radius 3 around attacker:
if loop-block is snow layer:
stop
if loop-block is ladder:
stop
if loop-block is vines:
stop
if loop-block is iron bars:
stop
if loop-block is fence:
stop
if loop-block is large fern:
stop
if loop-block is tall grass:
stop
if loop-block is button:
stop
if loop-block is door:
stop
if loop-block is fence gate:
stop
if loop-block is cobblestone wall:
stop
set {_a.v} to distance between attacker and victim
set {_a.atb} to distance between attacker and attacker's targeted block
attacker's targeted block is not block under victim
if attacker's gamemode is not creative or spectator:
if {%attacker's uuid%.guard.check.bypass} is not set:
set {%victim's uuid%.guard.check.cheat.cooldown.damage} to true
if projectile doesn't exist:
if {_a.v} > {_a.atb}:
if {@setback} is true:
cancel event
if {guard.%attacker%.vl.Killaura} < 3:
#add 1 to {guard.%attacker%.total.vl}
maybe(attacker, "KillAura", "1B")
execute command "/wdr %attacker%"
else:
clearly(attacker, "KillAura", "1B")
delete {%attacker's uuid%.guard.check.killaura.check}
loop {guard.Delay} times:
wait 0.21 second
delete {%attacker's uuid%.guard.check.cheat.cooldown.damage}
#--------------------------------------------------------
#
# A N T I R E A C H
#
#--------------------------------------------------------
on damage:
set {_distance} to distance between attacker and victim
set {_distance.%attacKER%} to distance between attacker and victim
if {guard.check.Reach} is false:
stop
if attacker has speed:
stop
if attacker is a player:
if attacker's gamemode is creative:
stop
if {_distance} > 4.7:
if damage cause is not a projectile:
if {@setback} is true:
cancel event
#add 1 to {guard.%attacker%.total.vl}
clearly(attacker, "Reach", "1A")
execute command "/wdr %attacker%"
on damage:
{guard.check.Reach} is true
set {_distance.%attacKER%} to distance between attacker and victim
delete {%attacker's uuid%.guard.check.cheat.cooldown.damage}
if distance between attacker and victim is greater than 4.2:
set {_r} to distance between attacker and victim
if attacker is a player:
if {%attacker's uuid%.guard.check.bypass} is not set:
if {%attacker's uuid%.guard.check.cheat.cooldown.damage} is not set:
set {%attacker's uuid%.guard.check.cheat.cooldown.damage} to true
if "%damage cause%" is not "fall", "void" or "unknown":
if projectile doesn't exist:
if {%attacker's uuid%.guard.check.autoclicker.check} is not set:
if {_r} is less than 4.2:
#add 1 to {guard.%attacker%.vl}
#add 1 to {guard.%attacker%.total.vl}
maybe(attacker, "Reach", "1B")
execute command "/wdr %attacker%"
if {@setback} is true:
cancel event
if {guard.%attacker%.vl} >= 20:
if {@Kick} is true:
make server execute command "/guard kick %attacker%"
stop
if {@Ban} is true:
make server execute command "/guard ban %attacker% 7 day"
else if {_r} is less than 5.5:
#add 1 to {guard.%attacker%.vl}
#add 1 to {guard.%attacker%.total.vl}
clearly(attacker, "Reach", "2B")
execute command "/wdr %attacker%"
if {@setback} is true:
cancel event
if {guard.%attacker%.vl} >= 10:
if {@Kick} is true:
make server execute command "/guard kick %attacker%"
stop
if {@Ban} is true:
make server execute command "/guard ban %attacker% 7 day"
else:
if {%attacker's uuid%.guard.check} > 5:
#add 1 to {guard.%attacker%.vl}
#add 1 to {guard.%attacker%.total.vl}
clearly(attacker, "Reach", "3B")
execute command "/wdr %attacker%"
if {@setback} is true:
cancel event
if {guard.%attacker%.vl} >= 1:
if {@Kick} is true:
make server execute command "/guard kick %attacker%"
stop
if {@Ban} is true:
make server execute command "/guard ban %attacker% 7 day"
delete {%attacker's uuid%.guard.check.cheat.cooldown.damage}
#--------------------------------------------------------
#
# A N T I N O F A L L
#
#--------------------------------------------------------
on any move:
if {guard.check.Nofall} is false:
stop
{time.%player%} is not set
player's gamemode is Adventure or Survival
player is on ground
block at player is air
block under player is air
set {_nofallcount} to 0
loop all blocks in radius 3 around player:
if loop-block is stairs:
stop
if loop-block is slab:
stop
loop all blocks in radius 2 around player:
if loop-block is not air:
add 1 to {_nofallcount}
if {_nofallcount} < 1:
#OLD VL COUNTER
#add 1 to {guard.%player%.total.vl}
if {guard.%player%.vl.Nofall} < 5:
maybe(player, "Nofall", "1A")
else:
clearly(player, "Nofall", "1A")
if {guard.%player%.vl} >= 15:
if {@Kick} is true:
make server execute command "/guard kick %player%"
stop
if {@Ban} is true:
make server execute command "/guard ban %player% 7 day"
if {_nofallcount} > 0:
stop
on walk on slab:
if {time.%player%} is not set:
set {time.%player%} to true
wait 2 seconds
clear {time.%player%}
on walk on ladder:
if {time.%player%} is not set:
set {time.%player%} to true
wait 2 seconds
clear {time.%player%}
on break:
if {time.%player%} is not set:
set {time.%player%} to true
wait 0.5 seconds
clear {time.%player%}
#--------------------------------------------------------
#
# A N T I F L I G H T
#
#--------------------------------------------------------
on any movement:
if player's gamemode is not creative or spectator:
if player's flight mode is false:
if block under player is air:
if block at player is air:
if block above player is air:
if block 2 under player is not air:
stop
player is not on ground:
loop all blocks in radius 3 around player:
if loop-block is not air:
stop
if loop-block is slime:
stop
set {_y} to y location of player
wait 5 ticks
set {_y2} to y location of player
set {_y1} to difference between {_y} and {_y2}
if {_y1} = 0:
clearly(player, "Fly", "1G")
if {_y1} is between 0.0001 and 0.9:
if {legitfly.%player%} is true:
stop
block under player is slime:
stop
if {jump.%player%} is true:
stop
if {guard.%player%.vl.Fly} < 5:
maybe(player, "Fly", "2G")
else:
clearly(player, "Fly", "2G")
on any movement:
set {_loc} to player's location
if player's chestplate is an elytra:
stop
if {%player%.guard.nochecks} is true:
stop
if {%player%.guard.epteleport} is true:
stop
if {teleport.%player%} is true:
stop
if player's gamemode is not creative or spectator:
if {%player%.guard.bypass} is not set:
player's flight mode is false
if {GUARD} is not set:
if block at player is cobweb:
stop
if block above player is cobweb:
stop
if block under player is cobweb:
stop
set {_y} to player's y coordinate
wait 3 ticks
set {_y} to player's y coordinate - {_y}
set {_y} to floor({_y})
if {%player%.guard.slime} is not set:
#send "Y: &e%{_y}%"
if {_y} > 3:
block under player is not any stairs or any slabs or slime:
{guard.check.Flight} is true
wait 5 tick
if {legitfly.%player%} is true:
stop
if {teleport.%player%} is true:
stop
if {guard.%player%.vl.Fly} < 5:
maybe(player, "Fly", "1D")
else:
clearly(player, "Fly", "1D")
if {_y} is between 0.00001 and 0.09:
block under player is not any stairs or any slabs or slime:
{guard.check.Float} is true
{%player%.guard.jump} is not set
block under player is air
player is not on ground
clearly(player, "Fly", "2D")
if player's y coordinate is y coordinate of {_loc}:
{guard.check.Float} is true
{%player%.guard.jump} is not set
block under player is air
player is not on ground
block under player is not any stairs or any slabs or slime:
loop all blocks in radius 3 around player:
if loop-block is cobweb:
stop
if {guard.%player%.vl.Fly} < 5:
maybe(player, "Fly", "3D")
else:
clearly(player, "Fly", "3D")
loop {guard.Delay} times:
wait 0.21 second
delete {%player%.guard.flight.delay}
on any movement:
set {_loc} to player's location
delete {%player%.guard.bypass}
delete {%player%.guard.cheat.cooldown}
delete {%player%.guard.falldmg}
delete {%player%.guard.jump}
delete {%player%.guard.slime}
if {GUARD} is not set:
if {%player%.guard.bypass} is not set:
if {%player%.guard.cheat.cooldown} is not set:
set {%player%.guard.cheat.cooldown} to true
if player's flight mode is false:
if block under player is air:
delete {GUARD}
else:
if player is riding:
stop
else:
if {%player%.guard.falldmg} is not set:
if player's chestplate is not an elytra:
if player is not on ground:
if {%player%.guard.jump} is not set:
set {_loc1} to player's location
set {_ycheck} to player's y coordinate
set {_123.loc} to player's location
wait 5 ticks
set {_ycheck1} to player's y coordinate
if {_ycheck1} >= {_ycheck}:
if player is not on ground:
loop 255 times:
if block at {_123.loc} is air:
remove 1 from y coordinate of {_123.loc}
if {_loc1} = {_123.loc}:
if player is on ground:
wait 3 ticks
if {%player%.guard.slime} is not set:
if {%player%.guard.damage} is not set:
if {%player%.guard.jump} is not set:
wait 2 ticks
if {%player%.guard.fix.slime} is not set:
wait 1 tick
if block under player is air:
block under player is not any slabs
loop all blocks in radius 3 around player:
if loop-block is slime:
stop
if loop-block is stairs:
stop
if loop-block is ladder:
stop
if loop-block is ice:
stop
if loop-block is packed ice:
stop
if loop-block is vines:
stop
if loop-block is slabs:
stop
if loop-block is cactus:
stop
block under player is slime:
stop
if {legitfly.%player%} is true:
stop
maybe(player, "Fly", "1F")
if player is not on ground:
if block under player is air:
player's chestplate is not an elytra
set {_b} to block under player
set {_b1} to block under {_b}
block under player is not any slabs
if {_b1} is air:
{guard.check.Flight} is true
loop all blocks in radius 3 around player:
if loop-block is slime:
stop
if loop-block is stairs:
stop
if loop-block is ladder:
stop
if loop-block is ice:
stop