This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAnticheat.sk
434 lines (402 loc) · 20.3 KB
/
Anticheat.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
#/// FASTBOW ///
on shoot:
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":
send action bar "&7[&b&lFish&5&lFisher&e&lAC] &e%shooter% &7may be using FastBow &f(VL:&b %{vl.%shooter%}%&f)" to loop-player
if {vl.%shooter%} >= 10:
loop all players:
loop-player has permission "staff":
send action bar "&7[&b&lFish&5&lFisher&e&lAC] &e%shooter% &7has been kicked for: &cFastBow &7&m| &r&f(VL:&b %{vl.%shooter%}%&f)" to loop-player
#kick shooter due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
#ban shooter due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ 7[&b&lFish&5&lFisher&e&lAC &eremoved &c%shooter% &efrom the server!"
broadcast "&c&l❌ &eReason: &cFastBow"
broadcast "&7&m-----------------------------------"
set {bow.%shooter%} to now
#/// REACH ///
on damage:
if attacker is a player:
if attacker's gamemode is creative:
stop
set {_distance.%attacker%} to distance between attacker and victim
if {_distance.%attacker%} >= 4.7:
if damage cause is not a projectile:
add 1 to {vl.%attacker%}
loop all players:
loop-player has permission "anticheat.alerts":
send action bar "&7[&b&lFish&5&lFish&e&lAC&7] &e%attacker% &7may be using reach &m|&r &a(%{_distance.%attacker%}%) &7&m|&r &f(VL:&b %{vl.%attacker%}%&f)" to loop-player
if {vl.%attacker%} >= 13:
loop all players:
loop-player has permission "anticheat.alerts":
send action bar "&7[&b&lFish&5&lFish&e&lAC&7] &e%attacker% &7has been kicked for: &cCheating Reach &m|&r &a(%{_distance.%attacker%}%) &f(VL:&b%{vl.%attacker%}%&f)" to loop-player
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lFish&5&lFish&e&lAC &eremoved &c%attacker% &efrom the server!"
broadcast "&c&l❌ &eReason: &cReach"
broadcast "&7&m-----------------------------------"
make server execute command "/smite %attacker%"
#kick attacker due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
make server execute command "/poussay %attacker% 30min &7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
on damage:
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
make server execute command "/smite %attacker%"
#kick attacker due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
#ban attacker due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lFish&5&lFish&e&lAC &eremoved &c%attacker% &efrom the server!"
broadcast "&c&l❌ &eReason: &cInfinit Aura"
broadcast "&7&m-----------------------------------"
#/// ANTIKNOCKBACK ///
on damage:
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 action bar "&7[&b&lFish&5&lFisher&e&lAC] &c&l%victim% &7may be using AntiKnockback &f(VL: &b%{vl.%victim%}%" to loop-player
if {vl.%victim%} >= 15:
#kick attacker due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
make server execute command "/poussay %attacker% 30min &7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lFish&5&lFisher&e&lAC &eremoved &c%victim% &efrom the server!"
broadcast "&c&l❌ &eReason: &cAntiKnockBack"
broadcast "&7&m-----------------------------------"
#/// AUTOCLICKER / MACRO ///
on leftclick:
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":
send action bar "&7[&b&lFish&5&lFish&e&lAC] &7%player% is clicking too fast! (CPS: &b%{cps.%player%}%&f) &7&m|&r (VL: &b%{vl.%player%}%&f)" to loop-player
add 1 to {vl.%player%}
if {vl.%player%} >= 10:
make server execute command "/smite %player%"
#kick player due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
make server execute command "/poussay %player% 30min &7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lFish&5&lFish&e&lAC &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cAutoclicker"
broadcast "&7&m-----------------------------------"
on rightclick:
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":
send action bar "&7[&b&lFish&5&lFish&e&lAC] &7%player% is clicking too fast! (CPS: &b%{cps.%player%}%&f) &7&m|&r (VL: &b%{vl.%player%}%&f)" to loop-player
add 1 to {vl.%player%}
if {vl.%player%} >= 10:
make server execute command "/smite %player%"
#kick player due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
make server execute command "/poussay %player% 30min &7[&b&lFish&5&lFish&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFish &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lFish&5&lFish&e&lAC &eremoved &c%player% &efrom the server!"
broadcast "&c&l❌ &eReason: &cAutoclicker"
broadcast "&7&m-----------------------------------"
#/// EVENTS ///
on join:
wait 2 second
message "&7[&b&lFish&5&lFisher&e&lAC&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
#/// NOFALL ///
function Detect(p: player, r: text):
add 1 to {alertl::%{_p}%}
loop all players:
loop-player is op: #Pour utiliser une permission, mettre "loop-player has permission "PERMISSION":"
send "&8[&6&l!&8] &bAntiCheat &8» &6%{_p}% &7a été détecté pour: &c%{_r}% &6(%{alertl::%{_p}%}%)'" to loop-player
play skellett sound "LEVEL_UP" to loop-player with volume 1 and pitch 2
on packet:
event-string is "PacketPlayInFlying"
set {_f} to packet field "f"
event-player is not flying
event-player's gamemode is survival
difference between {jointime::%event-player%} and now > 7 seconds
difference between {respawntime::%event-player%} and now > 3 seconds
difference between {teleporttime::%event-player%} and now > 3 seconds
if {_f} is true:
set {vlnofall2::%event-player%} to 0
if ground state of event-player is false:
loop blocks in radius 2 around player:
loop-block is water or lava or vines or ladder
set {vlnofall::%event-player%} to 0
stop trigger
add 1 to {vlnofall::%event-player%}
if {vlnofall::%event-player%} > 1:
Detect(event-player, "Nofall")
stop
set {vlnofall::%event-player%} to 0
stop
set {vlnofall::%event-player%} to 0
if {_f} is false:
if ground state of event-player is false:
loop blocks in radius 2 around player:
loop-block is water or lava or vines or ladder or cobweb
set {vlnofall2::%event-player%} to 0
stop trigger
add 1 to {vlnofall2::%event-player%}
if {vlnofall2::%event-player%} > 2:
Detect(event-player, "Nofall 2")
stop
set {vlnofall2::%event-player%} to 0
on any move:
if ground state of player is true:
player's gamemode is not creative
set {_z} to y location of player
block below player is air
wait 2 tick
y location of player < {_z}
add 1 to {vlnof3::%player%}
{vlnof3::%player%} > 5
loop blocks in radius 3 around player:
loop-block is chest or stairs or slab or ladder or vines or water or lava or snow layer
stop
Detect(player, "Nofall V3")
on jump:
set {vlnofall2::%player%} to 0
on join:
set {jointime::%player%} to now
set {respawntime::%player%} to now
set {teleporttime::%player%} to now
on respawn:
set {respawntime::%player%} to now
on teleport:
set {teleporttime::%player%} to now
every 1 second:
clear {vlnof3::*}
clear {alertl::*}
#/// FLY ///
function Detect(p: player, r: text):
if {_p} is flying:
stop
add 1 to {alertl::%{_p}%}
loop all players:
loop-player has permission "anticheat.alerts":
send action bar "&7[&b&lFish&5&lFisher&e&lAC&7] &c%{_p}% &7may be using Fly: &c%{_r}% &6(%{alertl::%{_p}%}%)'" to loop-player
if {alertl::%{_p}%} >= 15:
make server execute command "/smite %{_p}%"
#kick {_p} due to "&7[&b&lFish&5&lFish&e&lAC&7] &7Vous avez été banni de &2LibertyCity &7! Raison: &cFlyHacks &7Vous pensez que ceci est une erreur ? Alors faite une reclamation a :"
make server execute command "/poussay %{_p}% 30min &7[&b&lFish&5&lFisher&e&lAC&7] &7Your account has been suspended from &b&lFish&5&lFisher &7! Reason: &cCheating &7Think it's a mistake ? Then please appeal on discord: &bhttps://discord.gg/Na7P79H"
broadcast "&7&m-----------------------------------"
broadcast "&c&l❌ &b&lFish&5&lFisher&e&lAC &eremoved &c%{_p}% &efrom the server!"
broadcast "&c&l❌ &eReason: &cFly"
broadcast "&7&m-----------------------------------"
on damage:
set {cooldown.%victim%} to now
every 3 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 snow layer or carpet or water or lava or cobweb or anvil or stairs or slab or 165 or ladder or 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%} > 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.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:
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 is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &4(%{Alerte.Jesus.%player%}% alertes)"
stop
if {Alerte.Jesus.%player%} > 19:
loop all players:
loop-player is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &c(%{Alerte.Jesus.%player%}% alertes)"
stop
if {Alerte.Jesus.%player%} > 14:
loop all players:
loop-player is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &6(%{Alerte.Jesus.%player%}% alertes)"
command /clearjesus:
trigger:
clear {Alerte.Jesus.%player%}
on any move:
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 is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &4(%{Alerte.Jesus.%player%}% alertes)"
stop
if {Alerte.Jesus.%player%} > 19:
loop all players:
loop-player is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &c(%{Alerte.Jesus.%player%}% alertes)"
stop
if {Alerte.Jesus.%player%} > 14:
loop all players:
loop-player is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &6(%{Alerte.Jesus.%player%}% alertes)"
every 1 second:
loop all players:
clear {Alerte.Jesus.%loop-player%}
on jump:
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 is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &4(%{Alerte.Jesus.%player%}% alertes)"
make server execute command "/poussay %player% 30min Cheating"
stop
if {Alerte.Jesus.%player%} > 19:
loop all players:
loop-player is op:
send "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &c(%{Alerte.Jesus.%player%}% alertes)"
stop
if {Alerte.Jesus.%player%} > 14:
loop all players:
loop-player is op:
send action bar "&7[&b&lFish&5&lFisher&e&lAC&7] &c%player% &7may be using &fWaterWalk/Jesus &6(%{Alerte.Jesus.%player%}% alertes)"