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
/
AUTOCORE.sk
493 lines (439 loc) · 16 KB
/
AUTOCORE.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
#AUTOCORE V1
on join:
add 1 to {all.onlineplayers}
on quit:
remove 1 from {all.onlineplayers}
options:
prefix: &d&lLight&5&lCats &8&l|
Enabled: true
#DEAHTMSG
on death:
if attacker is player:
if victim is player:
set death message to "&c%victim% &7got killed by &c%attacker% &7!"
on death:
if attacker is not player:
if victim is player:
set death message to "&7OOF ! &c%victim% &7just died !"
#/pl
command /pl:
trigger:
send "{@prefix} Sorry but you can't do that!"
command /bukkit:pl:
trigger:
send "{@prefix} Sorry but you can't do that!"
command /plugins:
trigger:
send "{@prefix} Sorry but you can't do that!"
command /bukkit:plugins:
trigger:
send "{@prefix} Sorry but you can't do that!"
command /ver:
trigger:
send "{@prefix} Sorry but you can't do that!"
command /version:
trigger:
send "{@prefix} Sorry but you can't do that!"
command /bukkit:ver:
trigger:
send "{@prefix} Sorry but you can't do that!"
command /bukkit:version:
trigger:
send "{@prefix} Sorry but you can't do that!"
#REPORT
command /report [<player>] [<text>]:
trigger:
if {@Enabled} is false:
send "{@prefix} &7Feature disabled."
stop
if {reporttime.%player%} is bigger than 0:
send "{@prefix} &cYou need to wait &4%{reporttime.%player%}% &4seconds &cbefore getting able to report someone again !"
stop
if arg 1 is set:
if arg 2 is not set:
send "{@prefix} &aYour report has been registered !"
loop all players:
if loop-player has permission "report.see":
send "{@prefix} &c%player% &7reported &c%arg 1% &7reason not specified." to loop-player
send "{@prefix} &c%player% &7reported &c%arg 1% &7reason not specified." to loop-player
send "{@prefix} &c%player% &7reported &c%arg 1% &7reason not specified." to loop-player
set {reporttime.%player%} to 30
stop
if arg 1 is set:
if arg 2 is set:
send "{@prefix} &aYour report has been registered !"
loop all players:
if loop- player has permission "report.see":
send "{@prefix} &c%player% &7reported &c%arg 1% &7reason : &e%arg 2%&7" to loop-player
send "{@prefix} &c%player% &7reported &c%arg 1% &7reason : &e%arg 2%&7" to loop-player
send "{@prefix} &c%player% &7reported &c%arg 1% &7reason : &e%arg 2%&7" to loop-player
set {reporttime.%player%} to 30
stop
if arg 1 is not set:
send "{@prefix} &cPlease do /report PLAYER REASON or /report PLAYER !"
stop
every 1 second:
loop all players:
if {reporttime.%loop-player%} = 0:
stop
if {reporttime.%loop-player%} is bigger than 0:
remove 1 from {reporttime.%loop-player%}
#join
on join:
if {@Enabled} is true:
if player has permission "VIP":
set join message to ""
broadcast ""
broadcast "&5>&d>&5> %player's display name% &djoin the server ! &5<&d<&5<"
broadcast ""
on first join:
if {logins} is not set:
set {logins} to 0
add 1 to {logins}
broadcast "{@prefix} &5Welcome &d%player% &5to &d&lLight&5&lCats &7Survival &5! &7(&d%{logins}%&7)"
on join:
if {@Enabled} is true:
set join message to "&7[&2&l+&7] %player's display name%"
on quit:
if {@Enabled} is true:
set quit message to "&7[&c&l-&7] %player's display name%"
#DISCORD LINK
command /discord:
trigger:
if {@Enabled} is false:
send "{@prefix} &7Feature disabled."
stop
send "{@prefix} &7Discord Link: &fhttps://discord.gg/SPvP2Xm5tY"
#Ping
command /ping [<player>]:
aliases: /p
trigger:
if {@Enabled} is false:
send "{@prefix} &7Feature disabled."
stop
if arg 1 is not set:
send "{@prefix} &7Your ping: &6%player's ping%"
else:
send "{@prefix} &7%arg 1%&7's ping: &6%player-arg's ping%"
every 2 second:
loop all players:
if loop-player's ping is greater than 1000:
if {@Enabled} is true:
send action bar "{@prefix} &eThe connection is unstable." to loop-player
#Playtime
every 1 second:
loop all players:
add 1 to {sec.%loop-player%}
if {sec.%loop-player%} >= 60:
remove 60 from {sec.%loop-player%}
add 1 to {min.%loop-player%}
if {min.%loop-player%} >= 60:
remove 60 from {min.%loop-player%}
add 1 to {he.%loop-player%}
if {he.%loop-player%} >= 24:
remove 24 from {he.%loop-player%}
add 1 to {day.%loop-player%}
command /playtime [<offline player>]:
trigger:
if {@Enabled} is false:
send "{@prefix} &7Feature disabled."
stop
if arg 1 is not set:
if {day.%player%} is not set:
set {day.%player%} to 0
if {he.%player%} is not set:
set {he.%player%} to 0
if {min.%player%} is not set:
set {min.%player%} to 0
send "{@prefix} &7%{day.%player%}% &7Days &7%{he.%player%}% &7Hours &7%{min.%player%}% &7Minute&7 %{sec.%player%}% &7Seconds"
if arg 1 is set:
if {day.%arg 1%} is not set:
set {day.%arg 1%} to 0
if {he.%arg 1%} is not set:
set {he.%arg 1%} to 0
if {min.%arg 1%} is not set:
set {min.%arg 1%} to 0
send "{@prefix} &7%{day.%arg 1%}% &7Days &7%{he.%arg 1%}% &7Hours &7%{min.%arg 1%}% &7Minute&7 %{sec.%arg 1%}% &7Seconds"
#AutoBC
every 18 minutes:
if {@Enabled} is false:
stop
broadcast "{@prefix} &7Cheating is not allowed on our server !"
wait 3 minutes
broadcast "{@prefix} &7Don't forget to join our discord server using /discord !"
wait 3 minutes
broadcast "{@prefix} &7Hackers ? Use /report to report them ! Thanks !"
wait 3 minutes
broadcast "{@prefix} &7Need help ? Use /help or ask players and staff members :)"
wait 3 minutes
broadcast "{@prefix} &7A bug ? Something broke ? Tell us on /discord !"
wait 3 minute
broadcast "{@prefix} &7Want to apply on our server ? Do /discord and go in staff-apply !"
wait 3 minute
#AntiLag
on rightclick:
if {@Enabled} is false:
stop
increase {_clickcount} by 1
if {_clickcount} > 1000:
broadcast "{@prefix} &6%player% &cgot banned from this server!"
ban player due to "Too high CPS"
wait 5 seconds
delete {_clickcount}
on leftclick:
if {@Enabled} is false:
stop
increase {_clickcount} by 1
if {_clickcount} > 1000:
broadcast "{@prefix} &6%player% &cgot banned from this server!"
ban player due to "Too high CPS"
wait 5 seconds
delete {_clickcount}
#Chatcontrol
command /cooldownchat [<time span>]:
permission: SMODERATOR
trigger:
if {@Enabled} is false:
send "{@prefix} &7Feature disabled."
stop
if arg 1 is not set:
send "{@prefix} &cUsage : /cooldownchat <TimeSpan>"
stop
set {cdchat} to arg 1
send "{@prefix} &7Time defined to &e%arg 1%"
broadcast "{@prefix} &7Chat cooldown is now %arg 1%"
command /cooldownchatp [<text>]:
permission: ADMIN
trigger:
if {@Enabled} is false:
send "{@prefix} &7Feature disabled."
stop
if arg 1 is not set:
send "{@prefix} &cUsage: /cooldownchatp <permission>"
stop
set {cdperm} to arg 1
send "{@prefix} &7Permission set to &e%arg 1%"
on load:
if {cdperm} is not set:
set {cdperm} to op
if {cdchat} is not set:
set {cdchat} to 3 seconds
on chat:
if {@Enabled} is false:
send "{@prefix} &7Feature disabled."
stop
player doesn't have permission "%{cdperm}%"
set {_cd} to difference between {lastchat.%player%} and now
if {_cd} < {cdchat}:
send "{@prefix} &cWait a bit before talking again !"
cancel event
stop
set {lastchat.%player%} to now
#Enabled
command /warn [<player>] [<text>]:
permission: HELPER
trigger:
if arg 1 is set:
if arg 2 is set:
add 1 to {warns.%arg 1%}
send "{@prefix} &7You recived a warn. This is your &c%{warns.%player%}% &7warn." to arg 1
send "{@prefix} &7%arg 1% has been warned for &e%arg 2%" to player
broadcast "{@prefix} &c%player% &7warned &c%arg 1% &7reason &e%arg 2% &8[%{warns.%arg 1%}%&8/5]"
if {warns.%arg 1%} >= 3:
make server execute command "/mute %arg 1% 1h 3 warns"
if {warns.%arg 1%} >= 4:
make server execute command "/kick %arg 1% 4 Warns"
if {warns.%arg 1%} >= 5:
make server execute command "/tempban %arg 1% 7d 5 Warns"
stop
if arg 1 is set:
if arg 2 is not set:
add 1 to {warns.%arg 1%}
send "{@prefix} &7You recived a warn. This is your &c%{warns.%player%}% &7warn." to arg 1
send "{@prefix} &7%arg 1% has been warned for &e%arg 2%" to player
broadcast "{@prefix} &c%player% &7warned &c%arg 1% &8[%{warns.%arg 1%}%&8/5]"
if {warns.%arg 1%} = 3:
make server execute command "/mute %arg 1% 1h 3 warns"
if {warns.%arg 1%} = 4:
make server execute command "/kick %arg 1% 4 Warns"
if {warns.%arg 1%} = 5:
make server execute command "/tempban %arg 1% 7d 5 Warns"
stop
if arg 1 is not set:
send "{@prefix} &cUsage /warn PLAYER REASON" to player
stop
command /removewarn [<player>]:
permission: MODERATOR
trigger:
if arg 1 is set:
remove 1 from {warns.%arg 1%}
send "{@prefix} &71 warn have been removed ! Be happy :D" to arg 1
send "{@prefix} &7Removed 1 warn from &e%arg 1%" to player
if arg 1 is not set:
send "{@prefix} &cUsage /removedwarn PLAYER"
#vanish
options:
permission: HELPER
permissionm: &4You do not have access to this command!
permissionalert: HELPER
command /vanish [<offline player>]:
permission: {@permission}
permission message: {@permissionm}
aliases: v
executable by: player
trigger:
if arg 1 is not set:
if {vanish.%player%} is not set:
hide the player from all players
send "{@prefix} &7You are &cVanished&7."
set {vanish.%player%} to true
loop all players:
if loop-player has permission "{@permissionalert}":
send "&7&o[%player%: &r&evanished&7&o]" to loop-player
else:
reveal the player from all players
send "{@prefix} &7You are &cUnvanished&7."
delete {vanish.%player%}
loop all players:
if loop-player has permission "{@permissionalert}":
send "&7&o[%player%: &r&eunvanished&7&o]" to loop-player
if arg 1 is set:
if {vanish.%arg 1%} is not set:
hide the arg 1 from all players
send "{@prefix} &7You are &cVanish&7." to arg 1
set {vanish.%arg 1%} to true
loop all players:
if loop-player has permission "{@permissionalert}":
send "&7&o[%arg 1%: &r&evanished&7&o]" to loop-player
else:
reveal the arg 1 from all players
send "&7&o[%arg 1%: &r&eunvanished&7&o]" to arg 1
delete {vanish.%arg 1%}
loop all players:
if loop-player has permission "{@permissionalert}":
send "{@prefix} &7The player &c%arg 1% &7is no longer in vanish." to loop-player
command /vanishinfo [<offline player>]:
permission: {@permission}
permission message: {@permissionm}
aliases: vinfo
executable by: player
trigger:
if arg 1 is not set:
if {vanish.%player%} is set:
send "{@prefix} &7You're &cVanish&7."
else:
send "{@prefix} &7You are not &cVanish&7."
if arg 1 is set:
if {vanish.%arg 1%} is set:
send "{@prefix} &7The player &c%arg 1% &7is vanish."
else:
send "{@prefix} &7The player &c%arg 1% &7is not vanish."
on join:
loop all players:
if {vanish.%loop-player%} is true:
reveal the loop-player from all players
hide the loop-player from all players
every 5 seconds:
loop all players:
if {vanish.%loop-player%} is true:
loop all players:
if loop-player-2 has permission "{@permissionalert}":
reveal the loop-player-1 from loop-player-2
every 2 second:
loop all players:
if {vanish.%loop-player%} is true:
send action bar "{@prefix} &7You are currently vanished !" to loop-player
#teleport
command /tp [<player>] [<player>]:
permission: HELPER
trigger:
if arg 1 is set:
if arg 2 is not set:
teleport player to arg 1
send "{@prefix} &eYou've teleported to %arg 1%"
loop all players:
loop-player has permission "staff":
send "&7&o[%player%: &r&eteleport to %arg 1%&7&o]" to loop-player
stop
if arg 1 is set:
if arg 2 is set:
teleport arg 1 to arg 2
send "{@prefix} &eYou've been teleported to %arg 2%" to arg 1
send "{@prefix} &eYou've been teleported to %arg 1%" to arg 2
send "{@prefix} &eYou've been teleported %arg 1% to %arg 2%" to player
loop all players:
loop-player has permission "staff":
send "&7&o[%player%: &r&eteleport %arg 1% to %arg 2%&7&o]" to loop-player
if arg 1 is not set:
send "{@prefix} &cUsage /tp [<player>] [<player>]"
stop
#chat
command /chatclear:
permission: MODERATOR
trigger:
loop 200 times:
broadcast " "
broadcast "{@prefix} &c%player% &3cleared the chat !"
command /mutechat:
permission: SMODERATOR
aliases: mc
trigger:
if {chat} is not set:
set {chat} to false
if {chat} is false:
set {chat} to true
broadcast "{@prefix} &c%player% &3muted the chat !"
stop
if {chat} is true:
set {chat} to false
broadcast "{@prefix} &c%player% &3unmuted the chat !"
stop
on chat:
if {chat} is true:
if player has permission "talk":
uncancel event
stop
if {chat} is true:
cancel event
send "{@prefix} &cChat is currently muted !"
command /alert [<text>]:
permission: ADMIN
trigger:
if arg 1 is set:
broadcast ""
broadcast "&e&lALERT &7» &f%arg 1%"
broadcast "&e&lALERT &7» &f%arg 1%"
broadcast "&e&lALERT &7» &f%arg 1%"
broadcast ""
stop
if arg 1 is not set:
send "{@prefix} &cUsage: /alert MESSAGE"
stop
command /freeze [<player>]:
permission: freeze.use
trigger:
if {freeze.%arg 1%} is not set:
set {freeze.%arg 1%} to false
if arg 1 is set:
if {freeze.%arg 1%} is false:
set {freeze.%arg 1%} to true
send "{@prefix} &e%arg 1% &7is now frozen !" to player
send "{@prefix} &4&lYou have been frozen ! Read your chat !" to arg 1
stop
if {freeze.%arg 1%} is true:
set {freeze.%arg 1%} to false
send "{@prefix} &e%arg 1% &7has been unfreeze" to player
send "{@prefix} &2You were unfroze !" to arg 1
stop
on quit:
if {freeze.%player%} is true:
make server execute command "/tempban %player% 1min Logging Off While Begin Frozen"
on any move:
if {freeze.%player%} is true:
cancel event
on damage:
if {freeze.%attacker%} is true:
cancel event
if {freeze.%victim%} is true:
send "{@prefix} &c%victim% &cis currently froze you may not attack" to attacker
cancel event