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 pathASSISTANT.sk
230 lines (217 loc) · 10.5 KB
/
ASSISTANT.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
options:
ss: &8(&b&lAssistant&8)&f #Prefix of ASSISTANT | Default: &8(&b&lAssistant&8)&f
MaxVL: 3 #Max VL before the player get punished | Default: 3
CancelChat: true #Prevent the player from sending the message | Default: TRUE
AutoWarn: false #Automaticly warn the player | Default: FALSE
AutoMute: true #Automaticly mute the player | Default: TRUE
AutoKick: false #Automaticly kick the player | Default: FALSE
AutoBan: false #Automaticly permently ban the player | Default: FALSE
AutoTempBan: false #Automaticly temporaly ban the player | Default: FALSE
DefaultList: true #Enable default words | Default: TRUE
CustomList: true #Enable custom list | Default: TRUE
HacksList: true #Enable hacks words | Default: TRUE
GoodList: true #Enable good words | Default: TRUE
Broadcast: true #Broadcast the punishement the player recives | Default: TRUE
on script load:
set {update} to false
wait 1 second
if text from "https://pastebin.com/isRX5gta" contains "1.0.3":
set {update} to true
on join:
wait 3 seconds
if player's has permission "ASSISTANT.ADMIN":
if {update} is true:
send ""
send "{@ss} Update found ! Download it here:"
send "&3https://www.spigotmc.org/resources/skript-assistant-prevent-players-from-swearing.89007/"
send ""
every 5 minutes:
loop all players:
clear {ASSISTANT.vl.%loop-player%}
#END OF CONFIG
#/// COMMAND ///
command /assistant [<text>] [<text>]:
trigger:
if player's doesn't have permission "ASSISTANT.USE":
send "&b=-=-=-=-=-=-=-=-=-=-="
send " {@ss}"
send " Author: XIII___"
send " Versions: 1.0.3"
send "&b=-=-=-=-=-=-=-=-=-=-="
stop
if arg 1 is not set:
send "&b=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
send "&7/assistant add [word] | &fAdd a blacklisted word"
send "&7/assistant remove [word] | &fRemove a blacklisted word"
send "&7/assistant stats | &fSend assistant stats of the server"
send "&7/assistant list [hacks,good,default,custom] | &fList of blacklisted words"
send "&7/assistant help | &fShow this message"
send "&7/assistant bypass [player] | &fBypass a player from Assistant"
send "&b=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
if arg 1 is "add":
if arg 2 is set:
if {ASSISTANT.black::*} contains "%arg 2%":
send "{@ss} This word is alerdy blacklisted."
stop
add "%arg 2%" to {ASSISTANT.black::*}
send "{@ss} Word &e%arg 2% &fadded to blacklisted words."
stop
if arg 1 is "remove":
if arg 2 is set:
if arg 2 doesn't contain {ASSISTANT.black::*}:
send "{@ss} This word is not blacklisted."
stop
remove arg 2 from {ASSISTANT.blacklist::*}
send "{@ss} Word &e%arg 2%&f removed from blacklisted words."
stop
if arg 1 is "stats":
if arg 2 is not set:
if {ASSISTANT.feedbacks} is not set:
send "{@ss} Assistant did not registered any feedbacks yet !"
stop
send "{@ss} Number of posivite message: &f%{ASSISTANT.feedback}%"
if {ASSISTANT.hacking} is not set:
send "{@ss} Assistant did not detected any hackers yet !"
stop
send "{@ss} Number of hacking message: &f%{ASSISANT.hacking}%"
if {ASSISTANT.blocked} is not set:
send "{@ss} Assistant did not detected any messages yet !"
stop
send "{@ss} Number of blocked messages: &f%{ASSISTANT.blocked}%"
if {@AutoMute} is true:
if {ASSISTANT.mutes} is not set:
send "{@ss} Assistant did not muted anyone yet !"
stop
send "{@ss} Number of muted players: &f%{ASSISTANT.mutes}%"
if {@AutoWarn} is true:
if {ASSISTANT.warns} is not set:
send "{@ss} Assistant did not warned anyone yet !"
stop
send "{@ss} Number of warned players: &f%{ASSISTANT.warns}%"
if {@AutoKick} is true:
if {ASSISTANT.kicks} is not set:
send "{@ss} Assistant did not kicked anyone yet !"
stop
send "{@ss} Number of kicked players: &f%{ASSISTANT.kicks}%"
if {@AutoTempBan} is true:
if {ASSISTANT.tban} is not set:
send "{@ss} Assistant did not banned anyone yet !"
stop
send "{@ss} Number of tempbanned players: &f%{ASSISTANT.tban}%"
if {@AutoBan} is true:
if {ASSISTANT.pban} is not set:
send "{@ss} Assistant did not banned anyone yet !"
stop
send "{@ss} Number of permbanned players: &f%{ASSISTANT.pban}%"
stop
if arg 1 is set:
if arg 1 doesn't contains "%{ASSISTANT.commands::*}%":
send "{@ss} &cCommand not found , try /assistant."
stop
if arg 1 is "help":
make player execute command "/assistant"
stop
if arg 1 is "list":
if arg 2 is "hacks":
send "{@ss} Hacks list: cheat, cheating, cheater, hacking, hacker, haxor, hacks, hax, fly, killaura, reach, antikb and antiknockback"
stop
if arg 2 is "good":
send "{@ss} Good list: original server, good server, cool server, awsome server, great server and love server"
stop
if arg 2 is "default":
send "{@ss} Default list: %{ASSISTANT.default::*}%"
stop
if arg 2 is "custom":
if {ASSISTANT.black::* } is not set:
send "{@ss} No custom words blocked in list !"
stop
send "{@ss} Custom list: %{ASSISTANT.black::*}%"
stop
if arg 1 is "bypass":
if arg 2 is set:
if {ASSISTANT.bypass.%arg 2%} is not set:
set {ASSISTANT.bypass.%arg 2%} to false
if {ASSISTANT.bypass.%arg 2%} is false:
set {ASSISTANT.bypass.%arg 2%} to true
send "{@ss} Player &e%arg 2%&f is now bypassing Assistant."
stop
if {ASSISTANT.bypass.%arg 2%} is true:
set {ASSISTANT.bypass.%arg 2%} to false
send "{@ss} Player &e%arg 2%&f is no longer bypasing Assistant."
stop
#/// AUTO MSG ///
on chat:
if message contain "apply" or "staff":
send "{@ss} &fHello ! Want to apply on our server ? Do /discord !"
on join:
wait 3 seconds
send "{@ss} &fWelcome back to the server %player% &f!"
on chat:
if message contains "points":
send "{@ss} &fWant to check your points ? Do /mystats ! What to do with your points ? /shop !"
#/// CHAT FILTER ///
on chat:
if message contains "shit", "fuck", "fucc", "shutup", "shut up", "nigger", "niger", "n1gger", "n1ger", "nigga", "niga", "n1gga", "n1ga", "bitch", "fucc", "fuc", "dick", "dic", "dicc", "dik", "suck", "succ", "suc", "suk", "gay", "gey", "cum", "stupid", "dumb", "dum", "shit", "sh1t", "cock", "coke", "drugs", "drug", "noob", "sperm", "e z", "fucked", "pussy", "pusy", "pussi", "pusi", "bullshit", "bad", "penis", "pen1s", "peni", "pepe", "nude", "naked", "nacked", "naced", "porn", "jerk", "jerc" or "%{ASSISTANT.black::*}%":
if {ASSISTANT.bypass.%player%} is true:
stop
if {@DefaultList} is false:
stop
if {@CancelChat} is true:
cancel event
send "{@ss} &fHello ! Swearing is not allowed on our server !"
add 1 to {ASSISTANT.vl.%player%}
add 1 to {ASSISTANT.blocked}
if {ASSISTANT.vl.%player%} >= {@MaxVL}:
if {@AutoWarn} is true:
make server execute command "/warn %player% &8(&b&lAssistant&8) &cNon allowed words"
if {@Broadcast} is true:
broadcast ""
broadcast "{@ss} &fPlayer &c%player% &fhas been warned."
broadcast ""
add 1 to {ASSISTANT.warns}
if {@AutoMute} is true:
make server execute command "/mute %player% 5min &8(&b&lAssistant&8) &cNon allowed words"
if {@Broadcast} is true:
broadcast ""
broadcast "{@ss} &fPlayer &c%player% &fhas been muted for 5 minutes."
broadcast ""
add 1 to {ASSISTANT.mutes}
stop
if {@AutoKick} is true:
make server execute command "/kick %player% &8(&b&lAssistant&8) &cNon allowed words"
if {@Broadcast} is true:
broadcast ""
broadcast "{@ss} &fPlayer &c%player% &fhas been kicked from the server."
broadcast ""
add 1 to {ASSISTANT.kicks}
stop
if {@AutoBan} is true:
make server execute command "/ban %player% &8(&b&lAssistant&8) &cNon allowed words"
if {@Broadcast} is true:
broadcast ""
broadcast "{@ss} &fPlayer &c%player% &fhas been permently banned."
broadcast ""
add 1 to {ASSISTANT.pban}
stop
if {@AutoTempBan} is true:
make server execute command "/tempban %player% 30min &8(&b&lAssistant&8) &cNon allowed words"
if {@Broadcast} is true:
broadcast ""
broadcast "{@ss} &fPlayer &c%player% &fhas been temporaly banned for 30 minutes."
broadcast ""
add 1 to {ASSISTANT.tban}
stop
on chat:
if message contains "good server", "great server", "awsome server", "original server", "love server", "best server" or "cool server":
if {ASSISTANT.bypass.%player%} is true:
stop
if {@GoodList} is true:
add 1 to {ASSISTANT.feedback}
send "{@ss} &fThanks ! If you want to folow all servers updates join our discord ! (/discord) , your feedback has been registered !"
on chat:
if message contains "cheat", "hacker", "hacking", "cheats", "hacks", "hack", "hax", "haxor", "cheater", "fly", "killaura", "antikb", "velocity", "reach", "antiknockback" or "cheating":
if {ASSISTANT.bypass.%player%} is true:
stop
if {@HacksList} is true:
add 1 to {ASSISTANT.hacking}
send "{@ss} &fHello ! Think someone is hacking ? Then /report them thanks !"