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
/
dragonchaser.sk
1963 lines (1873 loc) · 86.5 KB
/
dragonchaser.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
#/// DRAGON CHASER V0.2 ///
options:
dc: &c&lDragon&6&lChaser &7>>
version: 0.2
#/// COMMANDS ///
on right click with snowball:
set {legitfly.%player%} to true
on any move:
if player is on ground:
set {legitfly.%player%} to false
command /velocity [<player>]:
permission: HELPER
trigger:
if {c.%arg 1%} is true:
send "{@dc} Player is alerdy getting velocity tested."
stop
if arg 1 is set:
if block above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
if block 2 above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
if block 3 above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
if block 4 above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
if block 5 above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
if block 6 above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
if block 7 above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
if block 8 above arg 1 is not air:
send "{@dc} &cBlock above &e%arg 1% &cis not air, check canceled." to player
stop
set {c.%arg 1%} to true
add 1 to {vvt.%arg 1%}
set {_sbv} to location of arg 1
set {_vloc} to y location of arg 1
set fly mode of arg 1 to true
push arg 1 upward at speed 2
wait 0.7 second
set {_vloc1} to y location of arg 1
set {_diffv} to difference between {_vloc} and {_vloc1}
set gamemode of arg 1 to survival
set fly mode of arg 1 to false
send "%{_diffv}%" to player
set {c.%arg 1%} to false
if {_diffv} is less than 7:
send "{@dc} &6Velocity: &4DETECTED &f(VL: &6VERTICAL&f)" to player
make player execute command "/velocityh %arg 1%"
clear {_diffv}
teleport arg 1 to {_sbv}
stop
if {_diffv} is less than 13:
send "{@dc} &6Velocity: &6MAYBE &f(VL: &6VERTICAL&f)" to player
clear {_diffv}
teleport arg 1 to {_sbv}
stop
if {_diffv} is bigger than 13:
send "{@dc} &6Velocity: &aNOTHING &f(VL: &6VERTICAL&f)" to player
teleport arg 1 to {_sbv}
stop
command /velocityh [<player>]:
permission: HELPER
trigger:
if {c.%arg 1%} is true:
send "{@dc} Player is alerdy getting velocity tested."
stop
if arg 1 is set:
set {c.%arg 1%} to true
add 1 to {vht.%arg 1%}
wait 1 second
set {_sbv} to location of arg 1
set {_vloc2} to z location of arg 1
set gamemode of arg 1 to spectator
set {_vector} to vector from location of arg 1
rotate {_vector} around z-axis by 90 degrees #Pitch combined with x-axis aswell
rotate {_vector} around z-axis by 25 degrees #Yaw
set velocity of arg 1 to {_vector}
wait 1 tick
push arg 1 backwards at speed 2
wait 1 second
set {_vloc3} to z location of arg 1
set {_diffh} to difference between {_vloc3} and {_vloc2}
set gamemode of arg 1 to survival
send "%{_diffh}%" to player
set {c.%ARG 1%} to false
if {_diffh} is less than 15:
send "{@dc} &6Velocity: &4DETECTED &f(VL: &6HORIZONTAL&f)" to player
teleport arg 1 to {_sbv}
set {_vcheck} to false
stop
if {_diffh} is less than 28:
send "{@dc} &6Velocity: &6MAYBE &f(VL: &6HORIZONTAL&f)" to player
teleport arg 1 to {_sbv}
set {_vcheck} to false
stop
if {_diffh} is bigger than 28:
send "{@dc} &6Velocity: &aNOTHING &f(VL: &6HORIZONTAL&f)" to player
teleport arg 1 to {_sbv}
set {_vcheck} to false
stop
every 1 second:
loop all players:
if loop-player's world is "ul_world":
stop
if loop-player's world is "br":
stop
if {game.%loop-player's world%} is false:
set {dragon.vclip.%loop-player%} to y location of loop-player
if {dragon.vclip.%loop-player%} < 140:
make loop-player execute command "/spawn"
command /dcban [<offline player>] [<timespan>]:
permission: anticheat.alert
trigger:
if arg 1 is not set:
message "{@dc} &cUsage : /dcban <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 "{@dc} &c%arg 1% has been banned"
add 1 to {dcbans.%arg 1%}
set {dcban::*} to "&cYou have been banned by &c&lDragon&6&lChaser", "&7Reason: &cBlacklisted Modifications", "&7Duration: &e1 day" and "&6Think it's a bug or a mistake ? Then please appeal here: &bhttps://discord.gg/HjEVzx28P9"
broadcast "&7&m----------------------------------------------------"
broadcast "&d%arg 1% &ehas been removed from the server by &c&lDragon&6&lChaser &efor: &cUnfair Advantage."
broadcast "&7&m----------------------------------------------------"
make server execute command "/smite %arg 1%"
set {dcban.%arg 1%} to true
set {tempban.time::%{_player}%} to arg 2
set {tempban.timestamp::%{_player}%} to now
kick {_player} due to "%{dcban::*}%"
stop
if {tempban.time::%{_player}%} is set:
message "{@dc} &cThis player is alerdy banned"
stop
if "%{_player}%" is offline player:
if {tempban.time::%{_player}%} is not set:
set {dcban.%arg 1%} to true
message "{@dc} &c%arg 1% has been banned"
add 1 to {dcbans.%arg 1%}
set {dcban::*} to "&cYou have been banned by &c&lDragon&6&lChaser", "&7Reason: &cBlacklisted Modifications", "&7Duration: &e1 day" and "&6Think it's a bug or a mistake ? Then please appeal here: &bhttps://discord.gg/HjEVzx28P9"
broadcast "&7&m----------------------------------------------------"
broadcast "&d%arg 1% &ehas been removed from the server by &c&lDragon&6&lChaser &efor: &cUnfair Advantage."
broadcast "&7&m----------------------------------------------------"
set {tempban.time::%{_player}%} to 1
set {tempban.timestamp::%{_player}%} to now
stop
if {tempban.time::%{_player}%} is set:
message "{@dc} &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 "%{dcban::*}%"
on quit:
if {tempban.time::%player%} is set:
set quit message to ""
command /tbc [<offline player>]:
permission: tbc.use
trigger:
add 1 to {unbans.%arg 1%}
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 "{@dc} &7Checking player..."
wait 1 second
if {firstalt.%{ip.%arg 1%}%} is not set:
send "{@dc} &cERROR: &4Player not found"
stop
send "{@dc} &7NAME: &c%arg 1%"
send "{@dc} &7IP: &c%ip of arg 1%"
if {joina.%arg 1%} is true:
send "{@dc} &7PING: &c%arg 1's ping%"
send "{@dc} &7FIRST JOIN: &c%{firstjoin.%arg 1%}%"
if {joina.%arg 1%} is true:
send "{@dc} &7STATUS: &aONLINE"
send "{@dc} &7CONNECTION TIME: &c%{join.%arg 1%}%"
if {joina.%arg 1%} is false:
send "{@dc} &7STATUS: &cOFFLINE"
if {firstalt.%{ip.%arg 1%}%} is not set:
set {firstalt.%{ip.%arg 1%}%} to 0
send "{@dc} &7FIRST ACCOUNT: &c%{firstalt.%{ip.%arg 1%}%}%"
if {altip.%{ip.%arg 1%}%::*} is not set:
set {altip.%{ip.%arg 1%}%::*} to 0
send "{@dc} &7ALTS: &c%{altip.%{ip.%arg 1%}%::*}%"
if {ban.%arg 1%} is not set:
set {ban.%arg 1%} to 0
send "{@dc} &7BANS: &c%{ban.%arg 1%}%"
if {banre.%arg 1%} is not set:
set {banre.%arg 1%} to 0
send "{@dc} &7ID: &c%{id.%arg 1%}%"
send "{@dc} &7REASON: &c%{banre.%arg 1%}%"
if {warns.%arg 1%} is not set:
set {warns.%arg 1%} to 0
send "{@dc} &7WARNS: &c%{warns.%arg 1%}%"
if {unban.%arg 1%} is not set:
set {unban.%arg 1%} to 0
send "{@dc} &7UNBANS: &c%{unban.%arg 1%}%"
command /flagtoggle [<text>]:
permission: ADMIN
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 {dragon.%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 "HELPER"]
set {dragon.%arg-1%} to true
else:
if {dragon.%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 "HELPER"]
set {dragon.%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)"
command /dc [<text>]:
permission: HELPER
trigger:
if arg 1 is not set:
make player execute command "/dc help"
if arg-1 is set:
if arg-1 is "help":
send " "
send "&7&m-----------&7[ {@dc} ]&m-----------"
send " "
send "&7Permission"
send "&7Main permission: &6&lHELPER"
send " "
send "&7Commands"
send "&7/dc help &6&lView dragon informations"
send "&7/dc update &6&lSee if there is a new version"
send "&7/dc reload &6&lReload the entire anticheat"
send "&7/dc disable &6&lDisable the entire anticheat"
send "&7/dc gui &6&lOpen the anticheat gui"
send "&7/flagtogle &6&lToggle a check"
send "&7/dcban &6&lBan a player"
send "&7/idset &6&lSet an ID for a player"
send "&7/dc notify &6&lToggle notifications"
send "&7/dc setback &6&lToggle setback"
send "&7/dc autoban &6&lToggle auto ban"
send ""
send "&7&m-----------&7[ {@dc} ]&m-----------"
if arg-1 is "update":
if player does not have permission "ADMIN":
stop
if {update} is true:
send "{@dc} &fUpdate found ! Download it here: &3"
stop
if {update} is false:
send "{@dc} &cNo update found !"
stop
if arg 1 is "disable":
if player does not have permission "ADMIN":
stop
make server execute command "/sk disable dragon"
send "{@dc} &fdragon unloaded"
send "{@dc} &fTo reenable the anticheat do /sk enable dragon"
stop
if arg 1 is "reload":
if player does not have permission "ADMIN":
stop
make server execute command "/sk reload dragon"
send "{@dc} &fdragon reloaded"
if arg 1 is "notify":
if {dragon.notify.%player%} is not set:
set {dragon.notify.%player%} to true
if {dragon.notify.%player%} is true:
set {dragon.notify.%player%} to false
send "{@dc} &fNotifications disabled" to player
stop
if {dragon.notify.%player%} is false:
set {dragon.notify.%player%} to true
send "{@dc} &fNotifications enabled" to player
if arg 1 is "setback":
if player does not have permission "ADMIN":
stop
if {dragon.setback} is true:
set {dragon.setback} to false
send "{@dc} &fSetback disabled" to player
stop
if {dragon.setback} is false:
set {dragon.setback} to true
send "{@dc} &fSetback enabled" to player
if arg 1 is "autoban":
if player does not have permission "ADMIN":
stop
if {dragon.autoban} is true:
set {dragon.autoban} to false
send "{@dc} &fAutoban disabled" to player
stop
if {dragon.autoban} is false:
set {dragon.autoban} to true
send "{@dc} &fAutoban enabled" to player
if arg 1 is "debug":
if player does not have permission "ADMIN":
stop
if {dragon.debug} is not set:
set {dragon.debug} to false
if {dragon.debug} is true:
set {dragon.debug} to false
send "{@dc} &fDebug disabled" to player
stop
if {dragon.debug} is false:
set {dragon.debug} to true
send "{@dc} &fDebug enabled" to player
command /dclogs [<offline player>]:
permission: MODERATOR
trigger:
if {vvt.%arg 1%} is not set:
set {vvt.%arg 1%} to 0
if {vht.%arg 1%} is not set:
set {vht.%arg 1%} to 0
if {vl.%arg 1%} is not set:
set {vl.%arg 1%} to 0
if {bans.%arg 1%} is not set:
set {bans.%arg 1%} to 0
if {unbans.%arg 1%} is not set:
set {unbans.%arg 1%} to 0
if {dcbans.%arg 1%} is not set:
set {dcbans.%arg 1%} to 0
if {warns.%arg 1%} is not set:
set {warns.%arg 1%} to 0
if {tvl.%arg 1%} is not set:
set {tvl.%arg 1%} to 0
send "&c&m---------------------------------------------------------"
send "{@dc} Velocity (VERTICAL) Tests: &c%{vvt.%arg 1%}%"
send "{@dc} Velocity (HORIZONTAL) Tests: &c%{vht.%arg 1%}%"
send "&c&m---------------------------------------------------------"
send "{@dc} Current VL: &c%{vL.%arg 1%}%"
send "&c&m---------------------------------------------------------"
send "{@dc} Manual Bans: &c%{bans.%arg 1%}%"
send "{@dc} Total Unbans: &c%{unbans.%arg 1%}%"
send "{@dc} Anticheat Bans: &c%{dcbans.%arg 1%}%"
send "{@dc} Total Warns: &c%{warns.%arg 1%}%"
send "&c&m---------------------------------------------------------"
send "{@dc} All time VL: &c%{tvl.%arg 1%}%"
send "&c&m---------------------------------------------------------"
send "{@dc} All Alts: &c%{altip.%{ip.%arg 1%}%::*}%"
send "{@dc} First Account: &c%{firstalt.%{ip.%arg 1%}%}%"
send "{@dc} Total Warns: &c%{warns.%arg 1%}%"
send "&c&m---------------------------------------------------------"
#/// KILLAURA ///
command /hh [<text>] [<player>]:
description: Forcefield check
permission : Ffcheck.use
executable by: players
trigger:
if arg 1 is not set :
send "&c/hh invoque"
send "&c/hh check [<player>]"
if arg 1 is "invoque" :
create a citizen named "AntiCheat" at location of player
set citizen 0 nametag invisible
set {Anticheat.loc} to the player's location
send "&cAntiCheat invoqué !"
if arg 1 is "check" :
if arg 2 is not set :
send "&cEt la cible ?"
send "Usage: /hh check [<player>]"
stop trigger
if arg 2 is set:
loop all entities :
"%uncoloured name of loop-entity%" is "AntiCheat"
teleport loop-entity 4.5 meters in front of arg 2
wait 0.4 second
teleport loop-entity 5 meters above arg 2
wait 0.4 second
teleport loop-entity 3 meter behind arg 2
wait 0.4 second
teleport loop-entity 3 meters under arg 2
wait 0.4 second
teleport loop-entity to {anticheat.loc}
command /aac [<player>]:
permission: ADMIN
trigger:
if {draban} is true:
if arg 1 is set:
loop all entities :
"%uncoloured name of loop-entity%" is "%{r.%arg 1%}%"
teleport loop-entity 3.3 meter behind arg 1
every 1 ticks:
loop all players:
make server execute command "/aac %loop-player%"
on join:
set {zzzz} to false
if {zzzz} is false:
stop
wait 5 seconds
set {_aloc} to the player's location
set {r.%player%} to "%random integer between 0 and 999%"
create a citizen named "%{r.%player%}%" at location of player
set {lcc.%player%} to last created citizen id
on quit:
make server execute command "/npc rem %{lcc.%player%}%"
command /ff [<player>]:
trigger:
if arg 1 is set:
set {attacker} to arg 1
set {loc} to location behind arg 1
spawn a skeleton at {loc}
set {bot} to last spawned entity
wait 5 ticks
delete last spawned entity
on damage:
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
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%.bubble.bypass} is not set:
set {%victim's uuid%.bubble.cheat.cooldown.damage} to true
if projectile doesn't exist:
if {_a.v} > {_a.atb}:
if {dragon.setback} is true:
cancel event
add 1 to {vl.%attacker%}
send "{@dc} &c%attacker% &7failed &cKillAura &7(T: B) &f(VL: &6%{vl.%attacker%}%&f)" to all players where [input has permission "HELPER"]
if {vl.%attacker%} >= 20:
if {dragon.autoban}:
make server execute command "/dcban %attacker% 1 day"
delete {%attacker's uuid%.bubble.killaura.check}
loop {Bubble.Delay} times:
wait 0.21 second
delete {%attacker's uuid%.bubble.cheat.cooldown.damage}
#/// SPEED ///
on any move:
player does not have permission "dragon.bypass":
if {dragon.speed} is true:
player doesn't have speed
if {dragon.speed} is true:
set {_loc::%player%} to the x location of player
set {speedsetback::%player%} to location of the player
wait 5 ticks
set {_loc1::%player%} to the x location of player
wait 1 tick
set {_diffyx::%player%} to difference between {_loc::%player%} and {_loc1::%player%}
if difference between {_loc::%player%} and {_loc1::%player%} >= 5:
player's gamemode is not creative
player is not flying
if {%player's uuid%.dragon.teleport} is true:
stop
if {%player's uuid%.dragon.epteleport} is true:
stop
add 1 to {speed::%player%}
if {speed::%player%} >= 3:
if {dragon.setback} is true:
teleport player to {setback.%player%}
set {_ping} to player's ping
if {_ping} > 600:
stop
send "{@dc} &c%player% &7failed &cSpeed &7(T: A) (&c%{_ping}%&c MS&f) (&c%{_diffyx::%player%}%&c Blocks Per Second&f)." to all players where [player input has permission "HELPER"]
add 1 to {speedalerts::%player%}
add 1 to {alerts::%player%}
on any move:
player does not have permission "dragon.bypass":
if {dragon.speed} is true:
player doesn't have speed
if {dragon.speed} is true:
set {_locz::%player%} to the z location of player
set {speedsetback::%player%} to location of the player
wait 5 ticks
set {_loc1z::%player%} to the z location of player
wait 1 tick
set {_diffy::%player%} to difference between {_locz::%player%} and {_loc1z::%player%}
if difference between {_locz::%player%} and {_loc1z::%player%} >= 5:
player's gamemode is not creative
player is not flying
if {%player's uuid%.dragon.teleport} is true:
stop
if {%player's uuid%.dragon.epteleport} is true:
stop
add 1 to {speed::%player%}
if {speed::%player%} >= 3:
if {dragon.setback} is true:
teleport player to {setback.%player%}
set {_ping} to player's ping
if {_ping} > 500:
stop
send "{@dc} &c%player% &7failed &cSpeed &7(T: B) (&c%{_ping}%&c MS&f) (&c%{_diffy::%player%}%&c Blocks Per Second&f)." to all players where [player input has permission "HELPER"]
add 1 to {speedalerts::%player%}
add 1 to {alerts::%player%}
#/// EVENTS ///
on join:
if player has permission "HELPER":
if {dragon.notify.%player%} is not set:
set {dragon.notify.%player%} to false
send "{@dc} &cNotifications turned off" to player
on script load:
if {dragon.autoban} is not set:
set {dragon.autoban} to true
on script load:
if {dragon.setback} is not set:
set {dragon.setback} to true
every 1 second:
loop all players:
clear {cps.%loop-player%}
every 30 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
every 1 tick:
if {dragon.setback} is false:
loop all players:
clear {setback.%loop-player%}
every 1 second:
if {dragon.setback} is false:
stop
loop all players:
loop-player is on ground:
set {setback.%loop-player%} to location of loop-player
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 &c&lDragon&6&lChaser &c! &7Time: &e%{_tempban2}% / %{tempban.time::%player%}% &7Reason: &cCheating &6%{vl.%player%}%&r &7BanID: &f%{id.%player%}% &6Think its a bug or a mistake ? Then please appeal here: &6https://discord.gg/fDtUDmb"
#/// FASTBOW ///
on shoot:
if {dragon.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 {dragon.notify.%loop-player%} is true:
send "{@dc} &7%shooter% &7failed&c FastBow&7 (T: A) &f(VL:&6&l %{vl.%shooter%}%&f)" to loop-player
if {vl.%shooter%} >= 10:
loop all players:
loop-player has permission "staff":
if {dragon.autoban} is false:
stop
make server execute command "/dcban %shooter% 1 day "
broadcast "{@dc} &7Banned &c%shooter% &7for &e30days &7reason : &cFastBow"
#/// REACH ///
on damage:
set {_distance} to distance between attacker and victim
set {_distance.%attacKER%} to distance between attacker and victim
if {dragon.Reach} is false:
stop
if attacker is a player:
if attacker's gamemode is creative:
stop
if {_distance} >= 4.2:
if damage cause is not a projectile:
if {dragon.setback} is true:
cancel event
if attacker's ping < 300:
add 1 to {vl.%attacker%}
loop all players:
loop-player has permission "HELPER":
if {dragon.notify.%loop-player%} is true:
send "{@dc} &7%attacker% &7failed&c Reach&7 (T: A) &a(%{_distance.%attacker%}%) &f(VL:&6&l %{vl.%attacker%}%&f)" to loop-player
if {vl.%attacker%} = 5:
make server execute command "/ff %attacker%"
if {vl.%attacker%} >= 13:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %attacker% "
broadcast "{@dc} &7Banned &c%attacker% &7for &e30days &7reason : &cReach"
on damage:
if {dragon.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:
if damage cause is not a projectile:
cancel event
if {dragon.autoban} is false:
stop
make server execute command "/dcban %attacker% "
broadcast "{@dc} &7Banned &c%attacker% &7for &e30days &7reason : &cInfinitAura"
#/// AUTOCLICKER (RIGHT,LEFT) ///
on leftclick:
if {dragon.Autoclicker} is false:
stop
add 1 to {cps.%player%}
if {cps.%player%} >= 20:
cancel event
loop all players:
loop-player has permission "HELPER":
if {dragon.notify.%loop-player%} is true:
add 1 to {vl.%player%}
send "{@dc} &c&lWARNING ! &cYour clicking too fast on your right click !" to player
send "{@dc} &7&c%player% &7failed &c Autoclicker &7(T: A) &f(CPS: &6&l%{cps.%player%}%&f) (VL: &6&l%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 10:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %player% 1 day "
broadcast "{@dc} &7Banned &c%player% &7for &e30days &7reason : &cAutoClicker (LEFT)"
on rightclick:
if {dragon.Autoclicker} is false:
stop
add 1 to {cps.%player%}
if {cps.%player%} >= 20:
cancel event
loop all players:
loop-player has permission "HELPER":
if {dragon.notify.%loop-player%} is true:
add 1 to {vl.%player%}
send "{@dc} &c&lWARNING ! &cYour clicking too fast on your right click !" to player
send "{@dc} &7&c%player% &7failed &c Autoclicker&7 (T: B) &f(CPS: &6&l%{cps.%player%}%&f) (VL: &6&l%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 10:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %player% 1 day "
broadcast "{@dc} &7Banned &c%player% &7for &e30days &7reason : &cAutoClicker (RIGHT)"
#/// NOFALL ///
on any move:
if {dragon.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 "HELPER":
if {dragon.notify.%loop-player%} is true:
send "{@dc} &c%player% &7failed &c Nofall &7(T: A) &f(VL: &6&l%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 15:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %player% 1 day "
broadcast "{@dc} &7Banned &c%player% &7for &e30days &7reason : &cNofall"
if {_nofallcount} > 0:
stop
every 1 second:
if {dragon.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 "HELPER":
if {dragon.notify.%loop-player%} is true:
send "{@dc} %loop-player-1% &7failed&c Nofall &7(T: B) &f(VL: &6&l%{vl.%loop-player-1%}%&f)" to loop-player
if {vl.%loop-player%} >= 10:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %loop-player% 1 day "
broadcast "{@dc} &7Banned &c%loop-player% &7for &e30days &7reason : &cNofall"
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 ///
#/// FLY V2 ///
on any movement:
if {legitfly.%player%} is true:
stop
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%.dragon.bypass} is not set:
player's flight mode is false
if block under player is not air or water:
set {%player's uuid%.dragon.tp.loc} to {_loc}
if {%player's uuid%.dragon.flight.delay} is not set:
set {%player's uuid%.dragon.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%.dragon.slime} is not set:
if {_y} > 5:
{dragon.Flight} is true
if {dragon.setback} is true:
teleport player to {setback.%player%}
loop all players:
loop-player has permission "HELPER":
add 2 to {vl.%player%}
if {dragon.notify.%loop-player%} is true:
send "{@dc} &c%player% &7failed &c Fly &7(T: A) &f(VL: &6&l%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 15:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %player% 1 day "
broadcast "{@dc} &7Banned &c%player% &7for &e30days &7reason : &cFly"
if {_y} = 0.1:
{dragon.Float} is true
{%player's uuid%.dragon.jump} is not set
block under player is air
player is not on ground
if {dragon.setback} is true:
teleport player to {setback.%player%}
loop all players:
loop-player has permission "HELPER":
add 1 to {vl.%player%}
if {dragon.notify.%loop-player%} is true:
send "{@dc} &c%player% &7failed &c Fly &7(T: B) &f(VL: &6&l%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 15:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %player% 1 day "
broadcast "{@dc} &7Banned &c%player% &7for &e30days &7reason : &cFly"
if player's y coordinate is y coordinate of {_loc}:
{dragon.Float} is true
{%player's uuid%.dragon.jump} is not set
block under player is air
player is not on ground
if {dragon.setback} is true:
teleport player to {setback.%player%}
loop all players:
loop-player has permission "HELPER":
add 1 to {vl.%player%}
if {dragon.notify.%loop-player%} is true:
send "{@dc} &c%player% &7failed &c Fly &7(T: C) &f(VL: &6&l%{vl.%player%}%&f)" to loop-player
if {vl.%player%} >= 15:
if {dragon.autoban} is false:
stop
make server execute command "/dcban %player% 1 day "
broadcast "{@dc} &7Banned &c%player% &7for &e30days &7reason : &cFly"
loop {dragon.Delay} times:
wait 0.21 second
delete {%player's uuid%.dragon.flight.delay}
#/// FLY V1 ///
function Detect(p: player, r: text):
if {legitfly.%{_p}%} is true:
stop
add 1 to {alertl::%{_p}%}
if fly mode of {_p} is true:
stop
loop all players:
loop-player have permission "HELPER":
send "{@dc} &c%{_p}% &7failed &c%{_r}% &f(VL: &6%{alertl::%{_p}%}%&f)" to loop-player
if {dragon.setback} is true:
teleport {_p} to {setback.%{_p}%}
if {alertl::%{_p}%} >= 15:
if {dragon.autoban} is true:
make server execute command "/dcban %{_p}% 1 day"
on damage:
set {cooldown.%victim%} to now
every 1 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
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
wait 3 ticks
if {cooldown.%player%} is set:
difference between {cooldown.%player%} and now < 0.3 seconds
clear {vlsame.%player%}
stop
Detect(player, "Fly V1 &e%{_diffy}%")
if "%{_diffy}%" = "0.16":
add 1 to {vl16.%player%}
{vl16.%player%} > 2
Detect(player, "Fly V1 &e%{_diffy}%")
if "%{_diffy}%" = "0.42":
add 1 to {vl42.%player%}
{vl42.%player%} > 2
Detect(player, "Fly V1 &e%{_diffy}%")
if "%{_diffy}%" = "0.23":
add 1 to {vl23.%player%}
{vl23.%player%} > 2
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.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 {dragon.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 "HELPER":
if {dragon.notify.%loop-player%} is true:
send "{@dc} &7&c%player% &7failed &c Jesus &7(T: C) &f(VL: &4%{Alerte.Jesus.%player%}%&f)" to loop-player
teleport player to {setback.%player%}
if {dragon.autoban} is false:
stop
make server execute command "/dcban %player% 1 day "
broadcast "{@dc} &7Banned &c%player% &7for &e30days &7reason : &cJesus"
stop
if {Alerte.Jesus.%player%} > 19:
loop all players:
loop-player has permission "HELPER":
if {dragon.notify.%loop-player%} is true:
send "{@dc} &7&c%player% &7failed &c Jesus &7(T: C) &f(VL: &6%{Alerte.Jesus.%player%}%&f)" to loop-player
if {jesus.%player%} is true:
stop