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 path-wc.sk
312 lines (288 loc) · 11.7 KB
/
-wc.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
#LegendaryOfCats#2651 AntiLag Config
options:
version: 1.3
NoPermission: &c&lWatchCat &7>> &cNo Permission!
chat_cooldown_seconds: 0
enabled: true
kick_10_alerts: true
command /WatchCat [<text>] [<offline player>]:
permission: WatchCat.command.admin
permission message: {@NoPermission}
trigger:
if arg 1 is not set:
send "&c&lWatchCat &8>> &c/WatchCat help"
if arg 1 is "help":
send "&c/WatchCat help"
send "&c/WatchCat freeze <player>"
send "&c/WatchCat alerts <player>"
if arg 1 is "freeze":
if arg 2 is set:
if player has permission "WatchCat.freeze":
if {freezed::%arg 2%} is false:
set {freezed.%arg 2%} to true
send "&c&lWatchCat &7>> &c%arg 2%&f is now frozen!"
else:
set {freezed::%arg 2%} to false
send "&c&lWatchCat &7>> &c%arg 2% is no longer frozen!"
else:
send "{@NoPermission}"
if arg 1 is "alerts":
if arg 2 is set:
if player has permission "WatchCat.command.logs":
send "&cAuto Clicker Logs: %{autoclickerlogs::%arg 2%}%"
send "&cFlight / AirWalk / NoFall Logs: %{flightlogs::%arg 2%}%"
send "&cKillaura logs: %{killauralogs::%arg 2%}%"
send "&cSpeed / Flight Logs: %{speedalerts::%arg 2%}%"
send "&cReach Logs: %{reachalerts::%arg 2%}%"
send "&cAnti Knockback Logs: %{antikbalerts::%arg 2%}%"
send "&cHigh Jump Logs: %{highjumplogs::%arg 2%}%"
else:
send "{@NoPermission}"
else:
send "&c&lWatchCat &8>> &cPlease specify a player!"
every 30 seconds:
delete {alerts::*}
on left click:
if {@enabled} is true:
player does not have permission "WatchCat.bypass.autoclicker":
add 1 to {killaura::%player%}
if {killaura::%player%} >= 18:
set {_ping} to player's ping
send "&c&lWatchCat &8>> &c%player%&f has failed Auto Clicking (&c%{_ping}%&c MS&f) (%{killaura::%player%}%&c&l CPS" to all players where [player input has permission "WatchCat.logs"]
add 1 to {autoclickerlogs::%player%}
execute console command "auratest %player%"
add 1 to {alerts::%player%}
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"
on left click:
if {@enabled} is true:
add 1 to {clickauratest::%player%}
player does not have permission "WatchCat.bypass.killaura"
if {clickauratest::%player%} >= 13:
execute console command "auratest %player%"
every 2 seconds:
delete {clickauratest::*}
delete {killaura::*}
on damage:
add 1 to {hits::%attacker%}
on left click:
add 1 to {leftclicks::%player%}
on death:
if {@enabled} is true:
if player does not have permission "WatchCat.bypass.killaura":
if {hits::%attacker%} = {leftclicks::%attacker%}:
execute console command "auratest %attacker%"
command /auratest [<player>]:
permission: WatchCat.aura
permission message: &c&lWatchCat >> No Permissions
trigger:
if {auratest.%arg 1%} is false:
set {loc} to location behind arg 1
set {attacker} to arg 1
set {auratest.%arg 1%} to true
spawn a zombie at {loc}
set {bot} to last spawned entity
wait 5 ticks
set {auratest.%arg 1%} to false
delete last spawned entity
on damage:
if attacker is {attacker}:
if victim is {bot}:
delete {bot}
set {_ping} to attacker's ping
send "&c&lWatchCat &r&8>> &c%attacker%&f has failed KillAura. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "WatchCat.logs"]
add 1 to {killauralogs::%attacker%}
add 1 to {alerts::%attacker%}
if {alerts::%attacker%} >= 10:
if {kick_10_alerts} is true:
kick attacker due to "&c&lWatchCat &8>> &cCheating"
else:
if victim is {bot}:
cancel event
on any move:
player's gamemode is not creative
player is not flying
block below player is air
block north below player is air
block south below player is air
block west below player is air
block east below player is air
block north east below player is air
block south east below player is air
block north west below player is air
block south west below player is air
the gliding state of player is true:
player's chestplate is elytra:
stop
else:
block under player is air
player is not on ground
set {_y} to player's y coordinate
set {flysetback::%player%} to player's location
wait 10 tick
set {_ping} to player's ping
set {_y.2} to player's y coordinate
if {_y} > {_y.2}:
player does not have permission "WatchCat.bypass.fly":
if {@enabled} is true:
send "&c&lWatchCat &8>> &c%player%&f has failed Fly. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "WatchCat.logs"]
add 1 to {alerts::%player%}
add 1 to {flightlogs::%player%}
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"
else if {_y} < {_y.2}:
player does not have permission "WatchCat.bypass.fly":
if {@enabled} is true:
send "&c&lWatchCat &8>> &c%player%&f has failed Fly. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "WatchCat.logs"]
add 1 to {alerts::%player%}
add 1 to {flightlogs::%player%}
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"
else if {_y} = {_y.2}:
player does not have permission "WatchCat.bypass.airwalk":
if {@enabled} is true:
send "&c&lWatchCat &8>> &c%player%&f has failed AirWalk. (&c%{_ping}%&c MS&f)" to all players where [player input has permission "WatchCat.logs"]
add 1 to {alerts::%player%}
add 1 to {flightlogs::%player%}
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"
teleport player to {flysetback::%player%}
every 2 seconds:
delete {fly::*}
on flight toggle:
if {speedcheck::%player%} is true:
set {speedcheck::%player%} to false
else:
wait 15 seconds
set {speedcheck::%player%} to true
on any move:
player does not have permission "WatchCat.bypass.speed":
if {@enabled} is true:
player doesn't have speed
if {speedcheck::%player%} 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%} >= 3.7:
player's gamemode is not creative
player is not flying
add 1 to {speed::%player%}
if {speed::%player%} >= 3:
teleport player to {speedsetback::%player%}
set {_ping} to player's ping
send "&c&lWatchCat &8>> &c%player% &fhas failed Speed. (&c%{_ping}%&c MS&f) (&c%{_diffyx::%player%}% Blocks Per Second)." to all players where [player input has permission "WatchCat.logs"]
add 1 to {speedalerts::%player%}
add 1 to {alerts::%player%}
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"
on any move:
player does not have permission "WatchCat.bypass.speed":
if {@enabled} is true:
player doesn't have speed
if {speedcheck::%player%} 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%} >= 3.7:
player's gamemode is not creative
player is not flying
add 1 to {speed::%player%}
if {speed::%player%} >= 3:
teleport player to {speedsetback::%player%}
set {_ping} to player's ping
send "&c&lWatchCat &8>> &c%player% &fhas failed Speed. (&c%{_ping}%&c MS&f) (&c%{_diffy::%player%}%&c Blocks Per Second&f)." to all players where [player input has permission "WatchCat.logs"]
add 1 to {speedalerts::%player%}
add 1 to {alerts::%player%}
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"
on damage:
attacker does not have permission "WatchCat.bypass.reach":
if {@enabled} is true:
attacker is a player
set {_reach} to distance between attacker and victim
if {_reach} > 4:
if damage cause is not a projectile:
attacker's gamemode is not creative:
cancel event
set {_ping} to attacker's ping
send "&c&lWatchCat &8>> &c%attacker% &fhas failed &cReach&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "WatchCat.logs"]
add 1 to {reachalerts::%attacker%}
add 1 to {alerts::%attacker%}
if {alerts::%attacker%} >= 10:
if {kick_10_alerts} is true:
kick attacker due to "&c&lWatchCat &8>> &cCheating"
on damage of a player:
victim is not flying
damage wasn't caused by fall, potion, lava, burning, fire, poison or wither
victim is not burning
victim doesn't have poison
victim doesn't have wither:
set {antikb::%victim%} to location of victim
wait 10 ticks
set {antikb2::%victim%} to location of victim
block at victim is not cobweb:
block at victim is not water:
victim is not riding:
if {antikb::%victim%} = {antikb2::%victim%}:
set {_ping} to victim's ping
attacker does not have permission "WatchCat.bypass.antiknockback":
if {@enabled} is true:
send "&c&lWatchCat &8>> &c%victim% has been detected using &cAnti Knockback&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "WatchCat.logs"]
add 1 to {alerts::%victim%}
add 1 to {antikbalerts::%victim%}
if {alerts::%victim%} >= 10:
if {kick_10_alerts} is true:
kick victim due to "&c&lWatchCat &8>> &cCheating"
on walk on water:
player's gamemode is not creative
player is not riding
player is not sneaking
block below player is water
block south below player is water
block east below player is water
block west below player is water
block north below player is water
block south player is air
block north player is air
block west player is air
block east player is air
player does not have permission "WatchCat.bypass.waterwalk":
if {@enabled} is true:
cancel event
set {_ping} to player's ping
add 1 to {alerts::%player%}
add 1 to {waterwalk::%player%}
send "&c&lWatchCat &8>> &c%player%&f has failed &cWaterWalk&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "WatchCat.logs"]
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"
on jump:
if {@enabled} is true:
player does not have permission "WatchCat.bypass.highjump":
player's gamemode is not creative
player is not flying
player is not riding
set {loc::%player%} to player's y coordinate
wait 7 ticks
set {loc1::%player%} to player's y coordinate
difference between {loc::%player%} and {loc1::%player%} >= 1.8:
teleport player to {loc::%player%}
add 1 to {highjumplogs::%player%}
add 1 to {alerts::%player%}
set {_ping} to player's ping
send "&c&lWatchCat &8>> &c%player%&f has failed &cHigh Jump&f. (&c%{_ping}%&c MS&f)." to all players where [player input has permission "WatchCat.logs"]
if {alerts::%player%} >= 10:
if {kick_10_alerts} is true:
kick player due to "&c&lWatchCat &8>> &cCheating"