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 pathMatirx-PEN.sk
53 lines (50 loc) · 2.27 KB
/
Matirx-PEN.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
command /Pentagon [<text>] [<offline player>] [<timespan>]:
permission: OP
trigger:
if arg 1 is "ban":
if arg 2 is set:
if {invalid} is not set:
broadcast ""
broadcast "&c&lP&4&le&c&ln&4<&c&la&4&lg&c&lo&4&ln &7» &c%arg 2%&f has been removed for &cUnfair Advantage"
broadcast ""
set {tempban.time::%arg 2%} to arg 3
set {tempban.%arg 2%} to true
set {tempban.timestamp::%arg 2%} to now
set {banned.%arg 1%} to true
make server execute command "/kill %arg 2%"
send "&c&lP&4&le&c&ln&4<&c&la&4&lg&c&lo&4&ln &7»&c You have been banned for hacking , this ban will last : &e%arg 3%&c" to arg 2
stop
if arg 1 is "unban":
if arg 2 is set:
clear {tempban.time::%arg 2%}
clear {tempban.timestamp::%arg 2%}
clear {tempban.%arg 2%}
delete {banned.%arg 2%}
send "&c&lP&4&le&c&ln&4<&c&la&4&lg&c&lo&4&ln &7» &c%arg 2% &7has been unbanned."
stop
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%}
set {banned.%player%} to false
set {tempban.%player%} to false
send "&c&lP&4&le&c&ln&4<&c&la&4&lg&c&lo&4&ln &7»&a You were unbanned."
if difference between now and {tempban.timestamp::%player%} is smaller than {tempban.time::%player%}:
set join message to ""
set {tempban.%player%} to true
on join:
if {tempban.time::%player%} is set:
set join message to ""
on quit:
if {tempban.time::%player%} is set:
set quit message to ""
on world change:
if {banned.%player%} is true:
make server execute command "/mvtp %player% spawn"
on chat:
if {banned.%player%} is true:
cancel event