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
/
ANTIFISHER.SK
1787 lines (1709 loc) · 90.8 KB
/
ANTIFISHER.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
#/// FASTBOW ///
on shoot:
if {antifisher.Fastbow} is false:
stop
if projectile is an arrow:
if difference between {bow.%shooter%} and now is less than 2 ticks:
add 1 to {vl.%shooter%}
loop all players:
loop-player has permission "staff":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%shooter% &ffailed FastBow&7 (T: A) &f(VL:&b %{vl.%shooter%}%&f)" to loop-player
if {vl.%shooter%} >= 10:
loop all players:
loop-player has permission "staff":
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %shooter% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%shooter% &efrom the server!"
broadcast "&c&l❌ &eReason: &cFastBow"
broadcast "&7&m-----------------------------------"
set {bow.%shooter%} to now
#/// REACH ///
on damage:
if {antifisher.Reach} is false:
stop
if attacker is a player:
if attacker's gamemode is creative:
stop
set {_distance.%attacker%} to distance between attacker and victim
if {_distance.%attacker%} >= 3.8:
if damage cause is not a projectile:
cancel event
add 1 to {vl.%attacker%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%attacker% &ffailed Reach&7 (T: A) &a(%{_distance.%attacker%}%) &f(VL:&b %{vl.%attacker%}%&f)" to loop-player
if {vl.%attacker%} >= 13:
if {antifisher.autoban} is false:
stop
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%attacker% &efrom the server!"
broadcast "&c&l❌ &eReason: &cReach"
broadcast "&7&m-----------------------------------"
#make server execute command "/smite %attacker%"
#make server execute command "/afban %attacker% 1 hour"
on damage:
if {antifisher.Reach} is false:
stop
if attacker is a player:
if attacker's gamemode is creative:
stop
set {_distance.%attacker%} to distance between attacker and victim
if {_distance.%attacker%} >= 6.7:
if damage cause is not a projectile:
cancel event
if {antifisher.autoban} is false:
stop
#make server execute command "/smite %attacker%"
#make server execute command "/afban %attacker% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%attacker% &efrom the server!"
broadcast "&c&l❌ &eReason: &cInfinit Aura"
broadcast "&7&m-----------------------------------"
#/// ANTIKNOCKBACK ///
on damage:
if {antifisher.Velocity} is false:
stop
if victim is a player:
if damage cause is fall:
stop
if damage cause is drown:
stop
if victim's gamemode is creative:
stop
if victim is flying:
stop
if victim have poison:
stop
if victim have wither:
stop
if victim is burning:
stop
set {loc1.%victim%} to location of victim
wait 1 second
set {loc2.%victim%} to location of victim
if {loc1.%victim%} = {loc2.%victim%}:
add 1 to {vl.%victim%}
loop all players:
loop-player has permission "anticheat.alerts":
send "&7[&b&lAnti&5&lFisher&7] &7%victim% &ffailed AntiKnockback &f(VL: &b%{vl.%victim%}%" to loop-player
if {vl.%victim%} >= 15:
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %victim% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%victim% &efrom the server!"
broadcast "&c&l❌ &eReason: &cAntiKnockBack"
broadcast "&7&m-----------------------------------"
#/// AUTOCLICKER / MACRO ///
on leftclick:
if {antifisher.Autoclicker} is false:
stop
add 1 to {cps.%player%}
if {cps.%player%} >= 18:
cancel event
send "&b&lFish&5&lFish &e&l>> &cWarning ! Your clicking too fast !"
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Autoclicker &7(T: A) &f(CPS: &b%{cps.%player%}%&f) (VL: &b%{vl.%player%}%&f)" to loop-player
add 1 to {vl.%player%}
if {vl.%player%} >= 10:
if {antifisher.autoban} is false:
stop
#make server execute command "/smite %player%"
#make server execute command "/tempban %player% 30 minute"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cAutoclicker"
broadcast "&7&m-----------------------------------"
on rightclick:
if {antifisher.Autoclicker} is false:
stop
add 1 to {cps.%player%}
if {cps.%player%} >= 15:
cancel event
send "&b&lFish&5&lFish &e&l>> &cWarning ! Your clicking too fast !"
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Autoclicker&7 (T: B) &f(CPS: &b%{cps.%player%}%&f) (VL: &b%{vl.%player%}%&f)" to loop-player
add 1 to {vl.%player%}
if {vl.%player%} >= 10:
if {antifisher.autoban} is false:
stop
#make server execute command "/smite %player%"
#make server execute command "/afban %player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cAutoclicker"
broadcast "&7&m-----------------------------------"
#/// EVENTS ///
on join:
if player has permission "anticheat.alerts":
if {antifisher.notify.%player%} is not set:
set {antifisher.notify.%player%} to false
send "&7[&b&lAnti&5&lFisher&7] &cNotifications turned off" to player
on script load:
if {antifisher.autoban} is not set:
set {antifisher.autoban} to true
on script load:
if {antifisher.setback} is not set:
set {antifisher.setback} to true
on join:
wait 2 second
message "&7[&b&lAnti&5&lFisher&7] &r&eAnything that gives you an unfair advantage over other players is against the rules...this includes autoclickers, minimaps, & other cheats. You have been warned!"
every 1 second:
loop all players:
clear {cps.%loop-player%}
every 10 second:
loop all players:
clear {vl.%loop-player%}
on death:
set {void.%player%} to true
on respawn:
set {void.%player%} to true
every 4 second:
set {sback} to true
wait 2 second
set {sback} to false
#/// SETBACK ///
every 1 second:
if {antifisher.setback} is false:
clear {setback.%player%}
every 1 tick:
if {antifisher.setback} is false:
stop
loop all players:
loop-player is on ground:
set {setback.%loop-player%} to location of loop-player
#/// NOFALL ///
on any move:
if {antifisher.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:
add 1 to {vl.%player%}
teleport player to {setback.%player%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] %player% &ffailed Nofall &7(T: A) &f(VL: &b%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 15:
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cNofall"
broadcast "&7&m-----------------------------------"
if {_nofallcount} > 0:
stop
every 1 second:
if {antifisher.Nofall} is false:
stop
loop all players:
loop-player's gamemode is Adventure or Survival
loop-player is on ground
block under loop-player is air
set {_y} to loop-player's y-location
wait 0.5 second
loop-player is on ground
set {_y2} to loop-player's y-location
set {_yresult} to {_y} - {_y2}
if {_yresult} > 1:
add 1 to {vl.%loop-player%}
teleport loop-player to {setback.%loop-player%}
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] %loop-player-1% &ffailed Nofall &7(T: B) &f(VL: &b%{vl.%loop-player-1%}%&f)" to loop-player
if {vl.%loop-player%} >= 10:
if {antifisher.autoban} is false:
stop
#make server execute command "/tban %loop-player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cNofall"
broadcast "&7&m-----------------------------------"
on walk on slab:
if {time.%player%} is not set:
set {time.%player%} to true
wait 2 seconds
clear {time.%player%}
on walk on stairs:
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%}
#/// FLY ///
function Detect(p: player, r: text):
if {antifisher.Float} is false:
stop
if {_p} is flying:
stop
block under {_p} is ladder:
stop
loop all blocks in radius 3 around {_p}:
if loop-block is slab:
stop
if loop-block is water:
stop
if loop-block is vine:
stop
if loop-block is snow layer:
stop
if loop-block is slab:
stop
block under {_p} is any stairs:
stop
add 1 to {alertl::%{_p}%}
if {alertl::%{_p}%} >= 3:
teleport {_p} to {setback.%{_p}%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%{_p}% &ffailed Fly &c(%{_r}%&c) &f(VL: &b%{alertl::%{_p}%}%&f)" to loop-player
if {alertl::%{_p}%} >= 15:
if {antifisher.autoban} is false:
stop
#make server execute command "/smite %{_p}%"
#make server execute command "/afban %{_p}% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%{_p}% &efrom the server!"
broadcast "&c&l❌ &eReason: &cFly"
broadcast "&7&m-----------------------------------"
on damage:
set {cooldown.%victim%} to now
every 8 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.08":
{vl08.%player%} is set
clear {vl08.%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
loop blocks in radius 3 around player:
loop-block is vines
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
if "%{_diffy}%" = "0.08":
add 1 to {vl08.%player%}
{vl08.%player%} > 12
Detect(player, "Fly V1 &e%{_diffy}%")
if "%{_diffy}%" = "0.16":
add 1 to {vl16.%player%}
{vl16.%player%} > 12
Detect(player, "Fly V1 &e%{_diffy}%")
if "%{_diffy}%" = "0.42":
add 1 to {vl42.%player%}
{vl42.%player%} > 12
Detect(player, "Fly V1 &e%{_diffy}%")
if "%{_diffy}%" = "0.23":
add 1 to {vl23.%player%}
{vl23.%player%} > 12
Detect(player, "Fly V1 &a %{_diffy}%")
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
Detect(player, "Fly v1 &d 0.12")
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
Detect(player, "Fly v1 &d 0.4")
if "%{_diffy}%" = "0.65":
add 1 to {vl65.%player%}
{vl65.%player%} > 2
Detect(player, "Fly V1 &1 %{_diffy}%")
if "%{_diffy}%" = "0.42" or "0.23" or "0.12" or "0.65" or "0.08" 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}
Detect(player, "Fly v1 &a%{_diffy}%")
else:
set {lasposy.%player%} to {_diffy}
clear {vlsame.%player%}
#/// JESUS ///
on walk on water:
if {antifisher.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:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: C) &f(VL: &4%{Alerte.Jesus.%player%}%&f)" to loop-player
teleport player to {setback.%player%}
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cJesus/WaterWalk"
broadcast "&7&m-----------------------------------"
stop
if {Alerte.Jesus.%player%} > 19:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: C) &f(VL: &6%{Alerte.Jesus.%player%}%&f)" to loop-player
if {jesus.%player%} is true:
stop
set {jesus.%player%} to true
teleport player to {setback.%player%}
if {antifisher.autoban} is false:
stop
kick player due to "&7[&b&lAnti&5&lFisher&7] &cJesus/Waterwalk"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cJesus/WaterWalk"
broadcast "&7&m-----------------------------------"
stop
if {Alerte.Jesus.%player%} > 14:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: C) &f(VL: &e%{Alerte.Jesus.%player%}%)" to loop-player
teleport player to {setback.%player%}
command /clearjesus:
trigger:
clear {Alerte.Jesus.%player%}
set {jesus.%player%} to false
on any move:
if {antifisher.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:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: D) &f(VL: &4%{Alerte.Jesus.%player%}%&f)" to loop-player
teleport player to {setback.%player%}
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cJesus/WaterWalk"
broadcast "&7&m-----------------------------------"
stop
if {Alerte.Jesus.%player%} > 19:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: D) &f(Vl: &6%{Alerte.Jesus.%player%}%&f)" to loop-player
if {jesus.%player%} is true:
stop
set {jesus.%player%} to true
teleport player to {setback.%player%}
if {antifisher.autoban} is false:
stop
kick player due to "&7[&b&lAnti&5&lFisher&7] &cJesus/Waterwalk"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cJesus/WaterWalk"
broadcast "&7&m-----------------------------------"
stop
if {Alerte.Jesus.%player%} > 14:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: D) &f(VL: &e%{Alerte.Jesus.%player%}%&f)" to loop-player
teleport player to {setback.%player%}
every 8 second:
loop all players:
clear {Alerte.Jesus.%loop-player%}
on jump:
if {antifisher.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:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: E) &f(VL: &4%{Alerte.Jesus.%player%}%&f)" to loop-player
teleport player to {setback.%player%}
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cJesus/WaterWalk"
broadcast "&7&m-----------------------------------"
stop
if {Alerte.Jesus.%player%} > 19:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: E) &f(VL: &6%{Alerte.Jesus.%player%}%&f)" to loop-player
if {jesus.%player%} is true:
stop
set {jesus.%player%} to true
teleport player to {setback.%player%}
if {antifisher.autoban} is false:
stop
kick player due to "&7[&b&lAnti&5&lFisher&7] &cJesus/Waterwalk"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cJesus/WaterWalk"
broadcast "&7&m-----------------------------------"
stop
if {Alerte.Jesus.%player%} > 14:
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%player% &ffailed Jesus &7(T: E) &f(VL: &e%{Alerte.Jesus.%player%}%&f)" to loop-player
teleport player to {setback.%player%}
on join:
if {jesus.%player%} is not set:
set {jesus.%player%} to false
#/// AUTOPOTION ///
function Potion(p: player, r: text):
if {antifisher.Autopot} is false:
stop
add 1 to {alertl::%{_p}%}
teleport {_p} to {setback.%{_p}%}
loop all players:
loop-player is op:
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%{_p}% &ffailed AutoPotion &7(T: A) &f(VL: &b%{alertl::%{_p}%}%&f)" to loop-player
if {alertl::%{_p}%} >= 15:
if {antifisher.autoban} is false:
stop
#make server execute command "/smite %{_p}%"
#make server execute command "/tban %{_p}% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%{_p}% &efrom the server!"
broadcast "&c&l❌ &eReason: &cAutoPotion"
broadcast "&7&m-----------------------------------"
every 8 second:
clear {alertl::*}
on right click with splash potion:
set {lpot.%player%} to now
on join:
set {lpot.%event-player%} to now
on projectile shoot:
"%shooter's tool%" contains "splash health potion"
difference between {lpot.%shooter%} and now > 0.2 second
Potion(shooter,"AutoPot")
#/// INVENTORY MOVE ///
function Inventory(p: player, r: text):
if {antifisher.Inventory} is false:
stop
add 1 to {alertl::%{_p}%}
teleport {_p} to {setback.%{_p}%}
loop all players:
loop-player is op:
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7%{_p}% &ffailed InventoryMove &7(T: A) &f(VL: &b%{alertl::%{_p}%}%&f)" to loop-player
if {alertl::%{_p}%} >= 5:
if {antifisher.autoban} is false:
stop
#make server execute command "/smite %{_p}%"
#make server execute command "/afban %{_p}% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%{_p}% &efrom the server!"
broadcast "&c&l❌ &eReason: &cInventoryMove"
broadcast "&7&m-----------------------------------"
on inventory click:
player's gamemode is not creative
if player is sprinting:
cancel event
Inventory(player, "InventoryMove")
stop
if player is sneaking:
cancel event
Inventory(player, "AutoSneak/InventoryMove")
stop
on sprint toggle:
wait 1 tick
if {invop.%player%} is set:
difference between {invop.%player%} and now > 0.5 second
Inventory(player, "Inventory Hack")
on inventory close:
clear {invop.%player%}
on any move:
{invop.%player%} is set:
difference between {invop.%player%} and now > 1 second
block below player is not air or water
loop blocks in radius 3 around player:
loop-block is water or ice or packed ice:
stop
wait 1 tick
{invop.%player%} is set
Inventory(player, "Inventory Move")
on damage:
victim is a player
clear {invop.%victim%}
#/// HIGHJUMP ///
on jump:
if {antifisher.Highjump} is false:
stop
if player is flying:
stop
if player's gamemode is creative:
stop
if player have jump boost:
stop
set {_pos} to location of player
wait 7 ticks
if distance between {_pos} and player is bigger than 3.2:
add 1 to {vl.%player%}
teleport player to {setback.%player%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] %player% &ffailed HighJump &7(T: A) &f(VL: &b%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 10:
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cHighJump"
broadcast "&7&m-----------------------------------"
else:
stop
#/// SPEED ///
on any move:
if {antifisher.Speed} is false:
stop
if player is flying:
stop
if player's gamemode is creative:
stop
loop all blocks in radius 0.5 around player:
if loop-block is not air:
set {_pos} to location of player
wait 1 second
if distance between {_pos} and player is bigger than 8:
add 1 to {vl.%player%}
if {vl.%player%} >= 6:
teleport player to {setback.%player%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] %player% &ffailed Speed &7(T: A) &f(VL: &b%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 10:
if {antifisher.autoban} is false:
stop
#make server execute command "/afban %player% 1 hour"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lAnti&5&lFisher &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cSpeed"
broadcast "&7&m-----------------------------------"
else:
stop
#/// UPDATE ///
on script load:
set {update} to false
wait 5 ticks
if text from "https://pastebin.com/ANZzTF6J" is not "1.1":
set {update} to true
on join:
wait 3 second
if {update} is true:
if player has permission "anticheat.alerts":
send " "
send "&7[&b&lAnti&5&lFisher&7] &fNew version available ! Download it here: &3??????????"
send " "
#/// BLINK / TP ///
on any movement:
if player's gamemode is not creative or spectator:
if {%player's uuid%.antifisher.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%.antifisher.walking} to true
set {%player's uuid%.antifisher.walk.speed} to {_dif}
wait 1 tick
delete {%player's uuid%.antifisher.walking}
delete {%player's uuid%.antifisher.walk.speed}
if {%player's uuid%.antifisher.nochecks} is true:
stop
if {%player's uuid%.antifisher.epteleport} is true:
stop
if {%player's uuid%.antifisher.teleport} is true:
stop
player is not riding
difference between {antifisher.LastLoad} and now is greater than 15 seconds
if {_dif} >= 5:
if {%player's uuid%.antifisher.teleport} is true:
stop
set {%player's uuid%.antifisher.cheat.speed} to {_dif} * 20
if block under player is not {_t.b}:
if block under player is not air:
{antifisher.Blink} is true
add 1 to {vl.%player%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] %player% &ffailed Blink &7(T: A) &f(VL: &b%{vl.%player%}%&f)" to loop-player
teleport player to {%player's uuid%.antifisher.tp.loc}
else:
{antifisher.Flight} is true
add 1 to {vl.%player%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] %player% &ffailed Fly &7(T: H) &f(VL: &b%{vl.%player%}%&f)" to loop-player
teleport player to {%player's uuid%.antifisher.tp.loc}
else:
{antifisher.ClickTP} is true
add 1 to {vl.%player%}
loop all players:
loop-player has permission "anticheat.alerts":
if {antifisher.notify.%loop-player%} is true:
send "&7[&b&lAnti&5&lFisher&7] %player% &ffailed ClickTP &7(T: A) &f(VL: &b%{vl.%player%}%&f)" to loop-player
teleport player to {%player's uuid%.antifisher.tp.loc}
teleport player to {%player's uuid%.antifisher.tp.loc}
#/// AF COMMANDS ///
command /idset [<offline player>] [<number>]:
permission: anticheat.alerts
trigger:
if arg 1 is set:
if arg 2 is set:
set {id.%arg 1%} to arg 2
send "&7[&b&lAnti&5&lFisher&7] &fId set" to player
stop
if arg 1 is set:
if arg 2 is not set:
send "&7[&b&lAnti&5&lFisher&7] &fYou might wanna put a number here..." to player
stop
if arg 1 is not set:
send "&7[&b&lAnti&5&lFisher&7] &fUsage: /idset PLAYER NUMBER" to player
on first join:
add 1 to {id}
set {id.%player%} to {id}
set {idname.%player%} to player's name
command /afban [<offline player>] [<timespan>]:
permission: op
trigger:
if {afban.%arg 1%} is true:
stop
if arg 1 is not set:
message "&7[&b&lAnti&5&lFisher&7] &cUsage : /afban <player> <time>"
if arg 1 is set:
set {_player} to arg 1
if {_player} is a player:
if {tempban.time:%{_player}%} is not set:
send "&7[&b&lAnti&5&lFisher&7] &c%arg 1% has been banned"
set {afban.%arg 1%} to true
set {tempban.time::%{_player}%} to arg 2
set {tempban.timestamp::%{_player}%} to now
kick {_player} due to " &cYou have been banned by &b&lAnti&5&lFisher &c! &7Time: &e1 hour &7Reason: &cCheating &6(%{vl.%player%}%)&r &bThink its a bug or a mistake ? Then please appeal here: &bhttps://discord.gg/fDtUDmb"
stop
if {tempban.time::%{_player}%} is set:
message "&7[&b&lAnti&5&lFisher&7] &cThis player is alerdy banned"
stop
if "%{_player}%" is offline player:
if {tempban.time:%{_player}%} is not set:
set {afban.%arg 1%} to true
message "&7[&b&lAnti&5&lFisher&7] &c%arg 1% has been banned"
set {tempban.time::%{_player}%} to 1
set {tempban.timestamp::%{_player}%} to now
stop
if {tempban.time::%{_player}%} is set:
message "&7[&b&lAnti&5&lFisher&7] &cThis player is alerdy banned"
on join:
if {tempban.time::%player%} is set:
set {_tempban} to difference between now and {tempban.timestamp::%player%}
set {_tempban2} to difference between {tempban.timestamp::%player%} and now
reduce {_tempban} by {tempban.time::%player%}
if difference between now and {tempban.timestamp::%player%} is bigger than {tempban.time::%player%}:
clear {tempban.time::%player%}
clear {tempban.timestamp::%player%}
unban player
if difference between now and {tempban.timestamp::%player%} is smaller than {tempban.time::%player%}:
set join message to ""
set {tempban.%player%} to true
kick player due to " &cYou have been banned by &b&lAnti&5&lFisher &c! &7Time: &e%{_tempban2}% / %{tempban.time::%player%}% &7Reason: &cCheating &6%{vl.%player%}%&r &7BanID: &f%{id.%player%}% &bThink its a bug or a mistake ? Then please appeal here: &bhttps://discord.gg/fDtUDmb"
on quit:
if {tempban.time::%player%} is set:
set quit message to ""
command /tbc [<offline player>]:
permission: tbc.use
trigger:
clear {tempban.time::%arg 1%}
clear {tempban.timestamp::%arg 1%}
message "&c %arg 1% unbanned"
on first join:
set {firstjoin.%player%} to now
command /check [<offline player>]:
permission: check.use
trigger:
send "&7[&b&lAnti&5&lFisher&7] &7Checking player..."
wait 1 second
if {firstalt.%{ip.%arg 1%}%} is not set:
send "&7[&b&lAnti&5&lFisher&7] &cERROR: &4Player not found"
stop
send "&7[&b&lAnti&5&lFisher&7] &7NAME: &c%arg 1%"
send "&7[&b&lAnti&5&lFisher&7] &7IP: &c%ip of arg 1%"
if {joina.%arg 1%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7PING: &c%arg 1's ping%"
send "&7[&b&lAnti&5&lFisher&7] &7FIRST JOIN: &c%{firstjoin.%arg 1%}%"
if {joina.%arg 1%} is true:
send "&7[&b&lAnti&5&lFisher&7] &7STATUS: &aONLINE"
send "&7[&b&lAnti&5&lFisher&7] &7CONNECTION TIME: &c%{join.%arg 1%}%"
if {joina.%arg 1%} is false:
send "&7[&b&lAnti&5&lFisher&7] &7STATUS: &cOFFLINE"
if {firstalt.%{ip.%arg 1%}%} is not set:
set {firstalt.%{ip.%arg 1%}%} to 0
send "&7[&b&lAnti&5&lFisher&7] &7FIRST ACCOUNT: &c%{firstalt.%{ip.%arg 1%}%}%"
if {altip.%{ip.%arg 1%}%::*} is not set:
set {altip.%{ip.%arg 1%}%::*} to 0
send "&7[&b&lAnti&5&lFisher&7] &7ALTS: &c%{altip.%{ip.%arg 1%}%::*}%"
if {ban.%arg 1%} is not set:
set {ban.%arg 1%} to 0
send "&7[&b&lAnti&5&lFisher&7] &7BANS: &c%{ban.%arg 1%}%"
if {banre.%arg 1%} is not set:
set {banre.%arg 1%} to 0
send "&7[&b&lAnti&5&lFisher&7] &7ID: &c%{id.%arg 1%}%"
send "&7[&b&lAnti&5&lFisher&7] &7REASON: &c%{banre.%arg 1%}%"
if {warns.%arg 1%} is not set:
set {warns.%arg 1%} to 0
send "&7[&b&lAnti&5&lFisher&7] &7WARNS: &c%{warns.%arg 1%}%"
if {unban.%arg 1%} is not set:
set {unban.%arg 1%} to 0
send "&7[&b&lAnti&5&lFisher&7] &7UNBANS: &c%{unban.%arg 1%}%"
command /flagtoggle [<text>]:
permission: anticheat.alerts
trigger:
if arg-1 is "Autoclicker", "Criticals", "Reach", "Killaura", "Velocity", "Bhop", "Blink", "ClickTP", "Flight", "Float", "HighJump", "Hover", "Jesus", "NoFall", "Fastbow", "Inventory", "Speed", "Spider" or "Step":
if {antifisher.%arg-1%} is false:
send "&7[&b&lAnti&5&lFisher&7] &e%sender% &7has &aenabled &6%arg-1%&7!" to all players where [player input has permission "anticheat.alerts"]
set {antifisher.%arg-1%} to true
else:
if {antifisher.%arg-1%} is true:
send "&7[&b&lAnti&5&lFisher&7] &e%sender% &7has &cdisabled &6%arg-1%&7!" to all players where [player input has permission "anticheat.alerts"]
set {antifisher.%arg-1%} to false
stop
else:
send "&7[&b&lAnti&5&lFisher&7] &cInvalid Argument! &8(&6Autoclicker, Bhop, Blink, ClickTP, Criticals, Flight, Float, HighJump, Hover, Jesus, Killaura, NoFall, Fastbow, Reach, Inventory, Speed, Spider, Step, Velocity&8)"
on join:
if {antifisher.Autoclicker} is not set:
set {antifisher.Autoclicker} to true
if {antifisher.Criticals} is not set:
set {antifisher.Criticals} to true
if {antifisher.Reach} is not set:
set {antifisher.Reach} to true
if {antifisher.Velocity} is not set:
set {antifisher.Velocity} to true
if {antifisher.Bhop} is not set:
set {antifisher.Bhop} to true
if {antifisher.Blink} is not set:
set {antifisher.Blink} to true
if {antifisher.ClickTP} is not set:
set {antifisher.ClickTP} to true
if {antifisher.Flight} is not set:
set {antifisher.Flight} to true
if {antifisher.Float} is not set:
set {antifisher.Float} to true
if {antifisher.HighJump} is not set:
set {antifisher.HighJump} to true
if {antifisher.Hover} is not set:
set {antifisher.Hover} to true
if {antifisher.Jesus} is not set:
set {antifisher.Jesus} to true
if {antifisher.NoFall} is not set:
set {antifisher.NoFall} to true
if {antifisher.Fastbow} is not set:
set {antifisher.Fastbow} to true
if {antifisher.Inventorymove} is not set:
set {antifisher.Inventorymove} to true
if {antifisher.Speed} is not set:
set {antifisher.Speed} to true
if {antifisher.Spider} is not set:
set {antifisher.Spider} to true
if {antifisher.Step} is not set:
set {antifisher.Step} to true
command /d:
permission: op
trigger:
set {antifisher.Inventory} to true
on inventory click:
if inventory name of player's current inventory contains "&7[&b&lAnti&5&lFisher&7]":
if inventory name of player's current inventory contains "&7[&b&lAnti&5&lFisher&7]":
if inventory name of player's current inventory contains "Movement":
close inventory of player
set {_name} to uncolored name of clicked item