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
/
OLDGUARD.sk
1996 lines (1911 loc) · 77.9 KB
/
OLDGUARD.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: &c&lP&4&le&c&ln&4<&c&la&4&lg&c&lo&4&ln&c&ln&4&le &7»&f
Version: B1
Ban: false #IF KICK IS TRUE MAKE BAN FALSE !
Kick: false #IF BAN IS TRUE MAKE KICK FALSE !
setback: true
AntiAlt: false
AntiBot: true
every 30 second:
loop all players:
clear {GUARD.%loop-player%.vl}
on any move:
if {GUARD.%player%.hell} is true:
if {GUARD.%player%.hs} is true:
stop
set {GUARD.%player%.hs} to true
set {_r} to "PENTAGONNE"
wait 1 tick
create a citizen named {_r} at location of player
wait 1 tick
hide citizen {_r} to all players
wait 1 tick
reveal citizen {_r} to player
set {_lnc} to last created citizen id
loop all entities:
uncoloured name of loop-entity is "PENTAGONNE"
loop 50 times:
teleport loop-entity 3.5 meters behind player
wait 1 tick
teleport loop-entity 3.5 meters behind player
wait 1 tick
teleport loop-entity 3.8 meters above player
wait 1 tick
teleport loop-entity 3.8 meters above player
wait 1 tick
make server execute command "/npc rem %{_lnc}%"
set {GUARD.%player%.hs} to false
set {GUARD.%player%.hell} to false
delete {GUARD.%player%.loc}
delete {GUARD.%player%.save}
on left click:
set {_t} to targeted entity
if {_t} is set:
if {GUARD.%player%.hs} is true:
detect(player, "KillAura", "AntiBot")
on any move:
if player is on ground:
set {GUARD.%player%.setback} to player's location
function detect(p: player, cheat: text, type: text):
if fly mode of {_p} is true:
stop
set {_uuid} to uuid of {_p}
add 1 to {GUARD.%{_p}%.vl}
send "{@Guard} %{_p}%&7 failed &f%{_cheat}%&f %{_type}%&7 VL[&9%{GUARD.%{_p}%.vl}%&7]" to console
loop all players:
if {GUARD.%loop-player%.alerts} is true:
send "{@Guard} %{_p}%&7 failed &f%{_cheat}%&f %{_type}%&7 VL[&9%{GUARD.%{_p}%.vl}%&7]" to loop-player
teleport {_p} to {GUARD.%{_p}%.setback}
if {GUARD.%{_p}%.vl} >= 2:
if {GUARD.%{_p}%.hell} is true:
stop
set {GUARD.%{_p}%.hell} to true
if {GUARD.%{_p}%.vl} >= 30:
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"
command /guard [<text>] [<player>] [<timespan>]:
permission: GUARD.admin
trigger:
if arg 1 is not set:
send " {@Guard}"
send "&7/guard &8| &fShow this pop up"
send "&7/guard kick [player] &8| &fKick a player"
send "&7/guard info [player] &8| &fShow informations about a selected player"
send "&7/guard version &8| &fShow GUARD version"
send "&7/guard reload &8| &fReload GUARD"
send "&7/guard notify &8| &fToggle GUARD alerts"
send "&7/guard ban [player] [timespan] &8| &fBan a player for a certain amout of time"
send "&7/guard unban [player] &8| &fUnban a player"
send ""
stop
if arg 1 is "kick":
if arg 2 is set:
if executor is player:
kick arg 2 due to "{@Guard} CHEAT DETECTION &7(ID-%player%&7)"
broadcast "{@Guard} &c%arg 2%&f has been removed for &cUnfair Advantage"
else:
kick arg 2 due to "{@Guard} CHEAT DECTECTION &7(ID-CONSOLE&7)"
broadcast "{@Guard} &c%arg 2%&f has been removed for &cUnfair Advantage"
stop
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: b1"
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 {tempban.time::%{_player}%} is not set:
broadcast "{@Guard} &c%arg 2%&f has been removed for &cUnfair Advantage"
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 arg 2 is set:
clear {tempban.time::%arg 2%}
clear {tempban.timestamp::%arg 2%}
send "{@Guard} %arg 2% has been unbanned."
stop
function Reload(p: text):
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
#--------------------------------------------------------
#
# 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}
detect(player, "AutoClicker", "1A")
if {GUARD.%player%.vl} >= 3:
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"
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
detect(player, "AutoClicker", "2A")
#OLD VL COUNTER
add 1 to {GUARD.%player%.total.vl}
if {GUARD.%player%.vl} >= 3:
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"
#--------------------------------------------------------
#
# A N T I K I L L A U R A
#
#--------------------------------------------------------
every 10 tick:
loop all players:
clear {combo.%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%.vl}
add 1 to {GUARD.%attacker%.total.vl}
detect(attacker, "KillAura", "2A")
if {GUARD.%attacker%.vl} >= 3:
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"
if {@setback} is true:
cancel event
on damage:
if victim is not player:
stop
if attacker is not player:
stop
if {GUARD.check.KILLAURA} is false:
stop
if {ktarget.%attacker%} is not set:
add 1 to {GUARD.%attacker%.vl}
add 1 to {GUARD.%attacker%.total.vl}
if {@setback} is true:
cancel event
detect(attacker, "KillAura", "3A")
on leftclick:
set {ktarget.%player%} to targeted entity
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
add 1 to {GUARD.%attacker%.vl}
add 1 to {GUARD.%attacker%.total.vl}
detect(attacker, "KillAura", "2A")
if {GUARD.%attacker%.vl} >= 5:
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.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%.vl}
add 1 to {GUARD.%attacker%.total.vl}
detect(attacker, "Reach", "1A")
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.25:
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.5:
add 1 to {GUARD.%attacker%.vl}
add 1 to {GUARD.%attacker%.total.vl}
detect(attacker, "Reach", "2A")
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 {_r} is less than 5.5:
add 1 to {GUARD.%attacker%.vl}
add 1 to {GUARD.%attacker%.total.vl}
detect(attacker, "Reach", "2B")
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}
detect(attacker, "Reach", "3B")
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}
detect(player, "Nofall", "1A")
if {vl.NOFALL.%player%} >= 8:
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:
set {_loc} to player's location
if player's chestplate is an elytra:
stop
if player's gamemode is not creative or spectator:
if {%player's uuid%.GUARD.bypass} is not set:
player's flight mode is false
if block under player is not air or water:
set {%player's uuid%.GUARD.tp.loc} to {_loc}
if {%player's uuid%.GUARD.flight.delay} is not set:
set {%player's uuid%.GUARD.flight.delay} to true
set {_y} to player's y coordinate
wait 10 ticks
set {_y} to player's y coordinate - {_y}
set {_y} to floor({_y})
if {%player's uuid%.GUARD.slime} is not set:
if {_y} > 5:
{GUARD.Flight} is true
add 1 to {GUARD.%player%.total.vl}
detect(player, "Fly", "3D")
if {_y} = 0:
{GUARD.Float} is true
{%player's uuid%.GUARD.jump} is not set
block under player is air
player is not on ground
add 1 to {GUARD.%player%.total.vl}
detect(player, "Fly", "2D")
if player's y coordinate is y coordinate of {_loc}:
{GUARD.Float} is true
{%player's uuid%.GUARD.jump} is not set
block under player is air
player is not on ground
add 1 to {GUARD.%player%.total.vl}
detect(player, "Fly", "1D")
loop {GUARD.Delay} times:
wait 0.21 second
delete {%player's uuid%.GUARD.flight.delay}
on any movement:
{GUARD.check.Step} is true
if {legitfly.%player%} is true:
stop
set {_loc} to player's location
set {_y} to y coordinate of {_loc}
wait 2 ticks
set {_y} to player's y coordinate - {_y}
player doesn't have jump boost
block under player is not carpet or water
if {_y} is greater than 1.25:
wait 1 tick
player's chestplate is not an elytra
{%player's uuid%.GUARD.check.nochecks} is not set
{%player's uuid%.GUARD.check.epteleport} is not set
{%player's uuid%.GUARD.check.teleport} is not set
player's gamemode is not creative or spectator
{%player's uuid%.GUARD.check.bypass} is not set
player's flight mode is false
player is not riding
player is not on ground
if block under player is not air:
if {%player's uuid%.GUARD.check.step.player} is not set:
#OLD VL COUNTER
add 1 to {GUARD.%player%.total.vl}
detect(player, "Fly", "1A")
if {GUARD.%player%.vl} >= 5:
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"
else:
{GUARD.check.FLY} is true
if {legitfly.%player%} is true:
stop
#OLD VL COUNTER
add 1 to {GUARD.%player%.total.vl}
detect(player, "Fly", "2A")
if {@setback} is true:
teleport player to {GUARD.%player%.setback}
if {GUARD.%player%.vl} >= 5:
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"
on any movement:
if player's chestplate is an elytra:
stop
if {legitfly.%player%} is true:
stop
if player's gamemode is not creative or spectator:
if {%player's uuid%.GUARD.check.bypass} is not set:
player's flight mode is false
set {_loc} to player's location
set {_t.b} to player's targeted block
wait 1 tick
set {_loc2} to player's location
set y coordinate of {_loc} to 0
set y coordinate of {_loc2} to 0
set {_dif} to distance between {_loc} and {_loc2}
if {_dif} >= 0.18:
set {%player's uuid%.GUARD.check.walking} to true
set {%player's uuid%.GUARD.check.walk.speed} to {_dif}
wait 1 tick
delete {%player's uuid%.GUARD.check.walking}
delete {%player's uuid%.GUARD.check.walk.speed}
if {%player's uuid%.GUARD.check.nochecks} is true:
stop
if {%player's uuid%.GUARD.check.epteleport} is true:
stop
if {%player's uuid%.GUARD.check.teleport} is true:
stop
player is not riding
if {_dif} > 5:
if {%player's uuid%.GUARD.check.teleport} is true:
stop
set {%player's uuid%.GUARD.check.cheat.speed} to {_dif} * 20
if block under player is not {_t.b}:
if block under player is not air:
{GUARD.check.Blink} is true
#OLD VL COUNTER
add 1 to {GUARD.%player%.total.vl}
detect(player, "Blink", "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"
else:
{GUARD.check.FLY} is true
if {legitfly.%player%} is true:
stop
#OLD VL COUNTER
add 1 to {GUARD.%player%.total.vl}
detect(player, "Fly", "3A")
if {@setback} is true:
teleport player to {GUARD.%player%.setback}
if {GUARD.%player%.vl} >= 5:
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"
else:
{GUARD.check.ClickTP} is true
#OLD VL COUNTER
add 1 to {GUARD.%player%.total.vl}
detect(player, "Fly", "4A")
if {@setback} is true:
teleport player to {GUARD.%player%.setback}
if {GUARD.%player%.vl} >= 5:
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"
on damage:
set {cooldown.%victim%} to now
every 5 second:
clear {alertl::*}
on any move:
player is not riding
set {_diffy} to difference between y location of player and {yloc.%player%}
set {yloc.%player%} to y location of player
if {_diffy} != 0:
if "%{_diffy}%" = "%{lasposy.%player%}%":
if "%{_diffy}%" != "0.16":
{vl16.%player%} is set
clear {vl16.%player%}
if "%{_diffy}%" != "0.42":
{vl42.%player%} is set
clear {vl42.%player%}
if "%{_diffy}%" != "0.23":
{vl23.%player%} is set
clear {vl23.%player%}
if "%{_diffy}%" != "0.65":
{vl65.%player%} is set
clear {vl65.%player%}
if "%{_diffy}%" != "0.12":
{vl12.%player%} is set
clear {vl12.%player%}
if "%{_diffy}%" != "0.4":
{vl04.%player%} is set
clear {vl04.%player%}
player's gamemode is not creative
if block at player is ladder or vines:
stop
if player's chestplate is an elytra:
stop
loop blocks in radius 3 around player:
loop-block is snow layer or carpet or water or lava or cobweb or anvil or vines or stairs or ladder or slab or 165
clear {vlsame.%player%}
stop
wait 3 ticks
if {cooldown.%player%} is set:
difference between {cooldown.%player%} and now < 0.3 seconds
clear {vlsame.%player%}
stop
#OLD VL COUNTER
detect(player, "Fly", "1B")
if "%{_diffy}%" = "0.16":
add 1 to {vl16.%player%}
{vl16.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "2B")
if "%{_diffy}%" = "0.42":
add 1 to {vl42.%player%}
{vl42.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "3B")
if "%{_diffy}%" = "0.23":
add 1 to {vl23.%player%}
{vl23.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "4B")
if "%{_diffy}%" = "0.12":
set {_pos} to block 1 north 1 west of block 2 above player
set {_pos2} to block 1 south 1 east of block above player
loop blocks within {_pos} to {_pos2}:
loop-block is not air
set {lasypos.%player%} to {_diffy}
stop
add 1 to {vl12.%player%}
{vl12.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "5B")
if "%{_diffy}%" = "0.4":
set {_pos} to block 1 north 1 west of block 2 above player
set {_pos2} to block 1 south 1 east of block above player
loop blocks within {_pos} to {_pos2}:
loop-block is not air
stop
add 1 to {vl04.%player%}
{vl04.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "6B")
if "%{_diffy}%" = "0.65":
add 1 to {vl65.%player%}
{vl65.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "7B")
if "%{_diffy}%" = "0.42" or "0.23" or "0.12" or "0.65" or "0.16" or "0.4":
stop
add 1 to {vlsame.%player%}
if {_diffy} >= 0.8:
set {_maxvl} to 1
else:
set {_maxvl} to 3
{vlsame.%player%} > {_maxvl}
#OLD VL COUNTER
detect(player, "Fly", "8B")
loop blocks in radius 3 around player:
loop-block is snow layer or carpet or water or lava or cobweb or anvil or vines or ladder or stairs or slab or 165
clear {vlsame.%player%}
stop
else:
set {lasposy.%player%} to {_diffy}
clear {vlsame.%player%}
#--------------------------------------------------------
#
# A N T I H I G H J U M P
#
#--------------------------------------------------------
on jump:
if {GUARD.check.Highjump} is false:
stop
if player is flying:
stop
if player's gamemode is creative:
stop
if player have jump boost:
stop
if {legitfly.%player%} is true:
stop
loop all blocks in radius 3 around player:
if loop-block is slime:
stop
set {_pos1} to y location of player
wait 7 ticks
set {_pos2} to y location of player
if difference between {_pos1} and {_pos2} is bigger than 2:
add 1 to {GUARD.%player%.total.vl}
detect(player, "HighJump", "1A")
if {vl.HIGHJUMP.%player%} >= 10:
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"
on jump:
set {_loc} to player's location
set {_y} to y coordinate of {_loc}
wait 2 ticks
set {_y} to player's y coordinate - {_y}
player doesn't have jump boost
block under player is not carpet or water
if {_y} > 1.1:
wait 1 tick
player's chestplate is not an elytra
{%player's uuid%.GUARD.nochecks} is not set
{%player's uuid%.GUARD.epteleport} is not set
{%player's uuid%.GUARD.teleport} is not set
player's gamemode is not creative or spectator
{%player's uuid%.GUARD.bypass} is not set
player's flight mode is false
player is not riding
if {_y} is between 1.1 and 2.6:
{GUARD.check.HIGHJUMP} is true
add 1 to {GUARD.%player%.total.vl}
detect(player, "HighJump", "1B")
#--------------------------------------------------------
#
# A N T I L O N G J U M P
#
#--------------------------------------------------------
on jump:
if {GUARD.check.LONGJUMP} is false:
stop
if player is flying:
stop
if player's gamemode is creative:
stop
if player have jump boost:
stop
if {legitfly.%player%} is true:
stop
if block under player is ice:
stop
if block under player is packed ice:
stop
set {_pos1} to location of player
wait 7 ticks
if distance between player's location and {_pos1} is bigger than 4.2:
add 1 to {GUARD.%player%.total.vl}
detect(player, "LongJump", "1A")
if {GUARD.%player%.vl} >= 10:
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"
#--------------------------------------------------------
#
# A N T I V C L I P
#
#--------------------------------------------------------
on any movement:
{GUARD.check.ILLEGAL} is true
if {legtifly.%player%} is true:
stop
set {_loc} to player's location
set {_y} to y coordinate of {_loc}
wait 2 ticks
set {_y} to player's y coordinate - {_y}
player doesn't have jump boost
block under player is not carpet or water
if {_y} is greater than 1.25:
wait 1 tick
player's chestplate is not an elytra
{%player's uuid%.GUARD.nochecks} is not set
{%player's uuid%.GUARD.epteleport} is not set
{%player's uuid%.GUARD.teleport} is not set
player's gamemode is not creative or spectator
{%player's uuid%.GUARD.bypass} is not set
player's flight mode is false
player is not riding
player is not on ground
if block under player is not air:
add 1 to {GUARD.%player%.total.vl}
detect(player, "VClip", "1A")
if {GUARD.%player%.vl} >= 5:
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"
else:
{GUARD.check.FLY} is true
add 1 to {GUARD.%player%.total.vl}
detect(player, "VClip", "2A")
if {GUARD.%player%.vl} >= 5:
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"
#--------------------------------------------------------
#
# A N T I S C A F F O L D
#
#--------------------------------------------------------
on block place:
if {GUARD.check.SCAFFOLD} is false:
stop
if {%player's uuid%.GUARD.teleport} is true:
stop
else:
set {_b} to block under player
set {_b} to block under {_b}
if {_b} is not air:
stop
else:
if block under event-block is not air:
stop
else:
if player's gamemode is not creative or spectator:
if {%player's uuid%.GUARD.bypass} is not set:
if y coordinate of event-block < y coordinate of player:
if player's pitch is between 9 and -90:
if {GUARD.delay.scaffold.%player%} is true:
stop
set {GUARD.delay.scaffold.%player%} to true
if {@setback} is true:
cancel event
detect(player, "Scaffold", "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"
else:
set {%player's uuid%.GUARD.old.pitch.time} to {%player's uuid%.GUARD.new.pitch.time}
set {%player's uuid%.GUARD.old.pitch} to {%player's uuid%.GUARD.new.pitch}
set {%player's uuid%.GUARD.new.pitch} to player's pitch
set {%player's uuid%.GUARD.new.pitch.time} to now
set {_dif.time} to difference between {%player's uuid%.GUARD.old.pitch.time} and {%player's uuid%.GUARD.new.pitch.time}
set {_dif.pitch} to difference between {%player's uuid%.GUARD.old.pitch} and {%player's uuid%.GUARD.new.pitch}
if {_dif.time} <= 0.3 seconds:
if {_dif.pitch} <= 2.5:
add 1 to {GUARD.%player%.total.vl}
if {@setback} is true:
cancel event
detect(player, "Scaffold", "2A")
if {_dif.time} = 0 seconds:
add 0.5 to {vl.%player%}
add 1 to {GUARD.%player%.total.vl}
if {@setback} is true:
cancel event
detect(player, "Scaffold", "2A")
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"
delete {GUARD.delay.scaffold.%player%}
#--------------------------------------------------------
#
# A N T I R E G E N
#
#--------------------------------------------------------
on heal:
if heal reason = satiated:
set {_waited} to difference between {Regen.%player's uuid%} and now
if {_waited} is less than 9 ticks:
add 1 to {GUARD.%player%.total.vl}
detect(player, "Regen", "1A")
if {@setback} is true:
cancel event
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"
set {Regen.%player's uuid%} to now
set {Regen.amount.%player's uuid%} to {Regen.amount.%player's uuid%} + 1
else:
set {Regen.%player's uuid%} to now
#--------------------------------------------------------
#
# A N T I P L U G I N S
#
#--------------------------------------------------------
command /pl:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
command /bukkit:pl:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
command /plugins:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
command /bukkit:plugins:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
command /ver:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
command /version:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
command /bukkit:ver:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
command /bukkit:version:
trigger:
send "{@Guard} Sorry but you can't do that!"
detect(player, "Plugins", "1A")
#--------------------------------------------------------
#
# 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: