· 9 years ago · Feb 02, 2017, 12:16 PM
1#(Old ugly acci text here)
2#
3#Mineplex Core Remake
4#The best and only Mineplex Copy
5#by Josh Roy (WheezyGold7931)
6#Enjoy!
7script options:
8 $ use permissions
9
10#Do not change these unless you want all hell to brake loose!
11options:
12 MCRVER: 1.9
13 configver: granite
14
15#Functions
16
17function configRefresh(n: number) :: number:
18 set {mineplex.config.config} to value "config" get of "plugins/Mineplex-Core-Remake/config.yml"
19 set {mineplex.config.servername} to value "servername" get of "plugins/Mineplex-Core-Remake/config.yml"
20 set {mineplex.config.website} to value "website" get of "plugins/Mineplex-Core-Remake/config.yml"
21 set {mineplex.config.appealwebsite} to value "appealwebsite" get of "plugins/Mineplex-Core-Remake/config.yml"
22
23function configPopulate(n: number) :: number:
24 create file "plugins/Mineplex-Core-Remake/config.yml"
25 set "config" to "{@configver}" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
26 set "servername" to "MINEPLEX" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
27 set "website" to "www.mineplex.com" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
28 set "appealwebsite" to "www.mineplex.com/appeals" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
29
30function updateRankAPI(p: player) :: player:
31 wait 5 ticks
32 if {mineplex.disguise.%{_p}%} is set:
33 set {_br} to uncolored {mineplex.rank.%{_p}%}
34 set {_dr} to uncolored {mineplex.rank.%{mineplex.disguise.%{_p}%}%}
35 replace all " " in {_br} with ""
36 replace all " " in {_dr} with ""
37 if {_dr} is "":
38 set {_dr} to "No Rank"
39 set {mineplex.api.displayrank.%{_p}%} to "%{_dr}% (%{_br}%)"
40 set {mineplex.api.displayname.%{_p}%} to "%{mineplex.disguise.%{_p}%}%"
41 else:
42 set {_br} to uncolored {mineplex.rank.%{_p}%}
43 set {mineplex.api.displayrank.%{_p}%} to "%{_br}%"
44 set {mineplex.api.displayname.%{_p}%} to "%{_p}%"
45
46function mcs(p: player , m: text) :: number:
47 if {mineplex.overidechat} is true:
48 if {mineplex.disguise.%{_p}%} is set:
49 set {_player} to {mineplex.disguise.%{_p}%}
50 else:
51 set {_player} to {_p}
52 if {mineplex.rank.%{_player}%} is not set:
53 set {mineplex.rank.%{_player}%} to ""
54 if {mineplex.level.%{_player}%} is not set:
55 set {mineplex.level.%{_player}%} to "&70"
56 replace all " fuck ", " bitch " and " ass " with "****" in {_m}
57 if {_m} is {mineplex.lastsent.%{_p}%}:
58 send "&9Chat> &7This message is too similar to your previous message." to {_p}
59 return -1
60 stop
61 set {mineplex.lastsent.%{_p}%} to {_m}
62 loop all players:
63 if {mineplex.pref.pc.%loop-player%} is true:
64 send "%{mineplex.level.%{_player}%}% %{mineplex.rank.%{_player}%}%&e%{_player}% &f%{_m}%" to loop-player
65 return -1
66 else:
67 stop
68
69function gwenAlert(p: player , r: text) :: number:
70 if {mineplex.disguise.%{_p}%} is set:
71 set {_player} to {mineplex.disguise.%{_p}%}
72 else:
73 set {_player} to {_p}
74 loop all players:
75 if loop-player has permission "mineplex.trainee":
76 if {mineplex.pref.gwen.%loop-player%} is true:
77 send "&b&kK&r &c&lGWEN > &6%{_player}% &esuspected of &a%{_r}%&e." to loop-player
78
79#Config Loading
80
81on load:
82 if file "plugins/Mineplex-Core-Remake/config.yml" doesn't exists:
83 configPopulate(1)
84# set {mineplex.config.servername} to colored value "servername" get of "plugins/Mineplex-Core-Remake/config.yml"
85 configRefresh(1)
86 wait 1 second
87 if {mineplex.config.config} is "{@configver}":
88 broadcast "&9Mineplex Core> &7Your Config is up to Date!"
89 else:
90 broadcast "&9Mineplex Core> &7Your Config is not up to Date! Updateing this shit for you!"
91 configPopulate(1)
92 broadcast "&9Mineplex Core> &7Config Re-Populated!"
93 broadcast "&9Mineplex Core> &7Going to reload plugin now!"
94 wait 1 second
95 execute console command "/sk reload all"
96 if {mineplex.usescoreboard} is not set:
97 set {mineplex.usescoreboard} to true
98
99#Main Command/Toggles
100command /mineplex-core <string> [<string>]:
101 usage: &9Do /mineplex-core help
102 permission: op
103 permission message: &9Permissions> &7This requires Permmission Rank [&9OP&7].
104 trigger:
105 if argument 1 is "help":
106 send "&9Plugin> &7Mineplex Core"
107 send "&9Plugin> &7Running MCR: &e{@MCRVER}"
108 send "&9Plugin> &7by WheezyGold7931, LimeGlass, Citrin_, and HappyLuigit"
109 send ""
110 send "&9Mineplex Core> &7Listing Mineplex Core Options:"
111 send "&f/mineplex-core useChat (true/false): &eToggles this plugin to take overide the chat to mineplex's format."
112 send "&f/mineplex-core setAdmin (Player): &eGives the selected player admin perms (For all mineplex commands)"
113 send "&f/mineplex-core titleOnJoin (true/false): &eToggles if players will see news on join!"
114 send "&f/mineplex-core useScoreboard (true/false) 7eToggles if you want to use Mineplex Core's Scoreboard"
115 send "&f/mineplex-core reload : &eReloads the config for Mineplex Core!"
116 else if argument 1 is "useChat":
117 if argument 2 is "true":
118 set {mineplex.overidechat} to true
119 send "&9Chat> &7Now using Mineplex Chat System (MCS)."
120 else:
121 set {mineplex.overidechat} to false
122 send "&9Chat> &7Now using Default Chat System (DCS)."
123 else if argument 1 is "titleOnJoin":
124 if argument 2 is "true":
125 set {mineplex.news.allow} to true
126 send "&9News> &7Now broadcasting titles on join!"
127 else:
128 set {mineplex.news.allow} to false
129 send "&9News> &7No longer broadcasting titles on join!"
130 else if argument 1 is "setAdmin":
131 if argument 2 is set:
132 set {mineplex.rank.%arg-1%} to "&4&lADMIN "
133 set {_mineplex.setadmin.temp} to "%arg-2%" parsed as player
134 execute console command "/__mp__dp__ %arg-2%"
135 add "mineplex.trainee" to {_mineplex.setadmin.temp}'s permissions
136 add "mineplex.legend" to {_mineplex.setadmin.temp}'s permissions
137 add "mineplex.mod" to {_mineplex.setadmin.temp}'s permissions
138 add "mineplex.builder" to {_mineplex.setadmin.temp}'s permissions
139 add "mineplex.srmod" to {_mineplex.setadmin.temp}'s permissions
140 add "mineplex.admin" to {_mineplex.setadmin.temp}'s permissions
141 updateRankAPI({_mineplex.setadmin.temp})
142 send "&9Ranks> &7Set %arg-2%'s rank to Admin"
143 else if argument 1 is "reload":
144 configRefresh(1)
145 send "&9Mineplex Core> &7Config Refreshed!"
146 else if argument 1 is "useScoreboard":
147 if argument 2 is set:
148 if argument 2 is "true":
149 set {mineplex.usescoreboard} to true
150 send "&9Mineplex Core> &7Scoreboard Enabled!"
151 else:
152 set {mineplex.usescoreboard} to false
153 send "&9Mineplex Core> &7Scoreboard Disabled!"
154 loop all players:
155 wipe loop-player's sidebar
156
157#Scoreboard
158
159every 2 seconds:
160 if {mineplex.usescoreboard} is false:
161 stop
162 else:
163 loop all players:
164 wipe loop-player's sidebar
165 set name of sidebar of loop-player to "&6&l%{mineplex.config.servername}%"
166 set score "&b&lServer" in sidebar of loop-player to 15
167 set score "&f%loop-player's world%" in sidebar of loop-player to 14
168 set score "&1 " in sidebar of loop-player to 13
169 set score "&a&lGems" in sidebar of loop-player to 12
170 set score "&f%{mineplex.gems.%loop-player%}%" in sidebar of loop-player to 11
171 set score "&2 " in sidebar of loop-player to 10
172 set score "&e&lShards" in sidebar of loop-player to 9
173 set score "&f%{mineplex.shards.%loop-player%}%" in sidebar of loop-player to 8
174 set score "&3 " in sidebar of loop-player to 7
175 set score "&6&lRank" in sidebar of loop-player to 6
176 set score "&f%{mineplex.api.displayrank.%loop-player%}%" in sidebar of loop-player to 5
177 set score "&4 " in sidebar of loop-player to 4
178 set score "&c&lWebsite" in sidebar of loop-player to 3
179 set score "&f%{mineplex.config.website}%" in sidebar of loop-player to 2
180 set score "&f----------------" in sidebar of loop-player to 1
181
182#Rank Loader
183
184on join:
185 if {mineplex.testrank.%player%} is set:
186 set {mineplex.rank.%player%} to {mineplex.testrank.%player%}
187 delete {mineplex.testrank.%player%}
188 if {mineplex.rank.%player%} is "&b&lULTRA ":
189 execute console command "/updaterank %player% ultra"
190 set player tab name to "&b&lULTRA &e%player%"
191 if {mineplex.rank,%player%} is "&d&lHERO ":
192 execute console command "/updaterank %player% hero"
193 set player tab name to "&d&lHERO &e%player%"
194 if {mineplex.rank.%player%} is "&a&lLEGEND ":
195 execute console command "/updaterank %player% legend"
196 set player tab name to "&a&lLEGEND &e%player%"
197 if {mineplex.rank.%player%} is "&c&lTITAN ":
198 execute console command "/updaterank %player% titan"
199 set player tab name to "&c&lTITAN &e%player%"
200 if {mineplex.rank.%player%} is "&6&lTRAINEE ":
201 execute console command "/updaterank %player% trainee"
202 set player tab name to "&6&lTRAINEE &e%player%"
203 if {mineplex.rank.%player%} is "&6&lMOD ":
204 execute console command "/updaterank %player% mod"
205 set player tab name to "&6&lMOD &e%player%"
206 if {mineplex.rank.%player%} is "&6&lSR.MOD ":
207 execute console command "/updaterank %player% srmod"
208 set player tab name to "&6&lSR.MOD &e%player%"
209 if {mineplex.rank.%player%} is "&6&lC.MOD ":
210 execute console command "/updaterank %player% cmod"
211 set player tab name to "&6&lC.MOD &e%player%"
212 if {mineplex.rank.%player%} is "&4&lADMIN ":
213 execute console command "/updaterank %player% admin"
214 set player tab name to "&4&lADMIN &e%player%"
215 if {mineplex.rank.%player%} is "&4&lLEADER ":
216 execute console command "/updaterank %player% leader"
217 set player tab name to "&4&lLEADER &e%player%"
218 if {mineplex.rank.%player%} is "&4&lOWNER ":
219 execute console command "/updaterank %player% owner"
220 set player tab name to "&4&lOWNER &e%player%"
221 if {mineplex.rank.%player%} is "&9&lBUILDER ":
222 execute console command "/updaterank %player% builder"
223 set player tab name to "&9&lBUIDLER &e%player%"
224 if {mineplex.rank.%player%} is "&9&lMAPLEAD ":
225 execute console command "/updaterank %player% maplead"
226 set player tab name to "&9&lMAPLEAD &e%player%"
227 if {mineplex.rank.%player%} is "&c&lJR.DEV ":
228 execute console command "/updaterank %player% jrdev"
229 if {mineplex.rank.%player%} is "&4&lDEV ":
230 execute console command "/updaterank %player% dev"
231 set player tab name to "&4&lDEV &e%player%"
232 if {mineplex.rank.%player%} is "&5&lTWITCH ":
233 execute console command "/updaterank %player% twitch"
234 set player tab name to "&5&lTWITCH &e%player%"
235 if {mineplex.rank.%player%} is "&c&lYOUTUBE ":
236 execute console command "/updaterank %player% youtube"
237 set player tab name to "&c&lYOUTUBE &e%player%"
238 if {mineplex.rank.%player%} is "&5&lYT ":
239 execute console command "/updaterank %player% yt"
240 set player tab name to "&5&lYT &e%player%"
241 if {mineplex.rank.%player%} is "&3&lETERNAL ":
242 execute console command "/updaterank %player% eternal"
243 set player tab name to "&3&lETERNAL &e%player%"
244 if {mineplex.rank.%player%} is "&1&lSUPPORT ":
245 execute console command "/updaterank %player% support"
246 if {mineplex.rank.%player%} is "&1&lMEDIA ":
247 execute console command "/updaterank %player% media"
248
249#Chat System
250
251on chat:
252 if {muted::%player%} is true:
253 if {muted::%player%::type} is "perm":
254 send "&9Punish> &7Shh, you're muted because %{muted::%player%::reason}% by %{muted::%player%::by}% for Permanent."
255 cancel event
256 stop
257 if {muted::%player%::type} is "temp":
258 set {_waited} to difference between {muted::%player%::when} and now
259 if {_waited} is less than {muted::%player%::time}:
260 send "&9Punish> &7Shh, you're muted because %{muted::%player%::reason}% by %{muted::%player%::by}% for &a%{muted::%player%::time}%."
261 cancel event
262 stop
263 if {mineplex.vanish.%player%} is false:
264 if {mineplex.chatslow} is set:
265 if player has permission "mineplex.mod":
266 set {_check} to mcs((player), (message))
267 if {_check} is less than 0:
268 cancel event
269 delete {_check}
270 else:
271 if difference between {lastChat::%player%} and now < {mineplex.chatslow}:
272 cancel event
273 send "&9Chat> &7Chat slow enabled. Please wait."
274 else:
275 set {lastChat::%player%} to now
276 set {_check} to mcs((player), (message))
277 if {_check} is less than 0:
278 cancel event
279 delete {_check}
280 else if {mineplex.chatsilence} is set:
281 if player has permission "mineplex.trainee":
282 set {_check} to mcs((player), (message))
283 if {_check} is less than 0:
284 cancel event
285 delete {_check}
286 else:
287 cancel event
288 send "&9Chat> &7The chat is silenced."
289 else:
290 if {party.%player%.chat} is true:
291 if length of message is greater than 1:
292 if first character of message is "@":
293 cancel event
294 set message to "%subtext of message from characters 2 to (length of message)%"
295 loop {party.%{party.%player%}%::*}:
296 message "&5&lParty &f&l%player% &d%message%" to loop-value
297 else:
298 set {_check} to mcs((player), (message))
299 if {_check} is less than 0:
300 cancel event
301 delete {_check}
302 else:
303 set {_check} to mcs((player), (message))
304 if {_check} is less than 0:
305 cancel event
306 delete {_check}
307 else:
308 set {_check} to mcs((player), (message))
309 if {_check} is less than 0:
310 cancel event
311 delete {_check}
312 else if {mineplex.vanish.%player%} is true:
313 send "&eYou can not chat while incognito."
314 cancel event
315 else:
316 set {mineplex.vanish.%player%} to false
317 set {_check} to mcs((player), (message))
318 if {_check} is less than 0:
319 cancel event
320 delete {_check}
321
322#Join, Quit, and Load Handlers
323
324on join:
325 if player has permission "mineplex.admin":
326 wait 5 seconds
327 #set {_var::*} to contents from url "https://raw.githubusercontent.com/WheezyGold7931/Mineplex-Core/master/version.txt" Raw in GitHub does not update fast enough rip lel
328 set {_var::*} to contents from url "http://pastebin.com/raw/LG11nc8b"
329 loop {_var::*}:
330 if loop-value is not "{@MCRVER}":
331 send "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download" to player
332 else:
333 stop
334 send "&9Mineplex Core> &7Changelog:" to player
335 set {_var1::*} to contents from url "http://pastebin.com/raw/YDB8kU1v"
336 loop {_var1::*}:
337 send "%loop-value%" to player
338
339 loop {_var::*}:
340 send "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download" to player
341 send "&9Mineplex Core> &7End of Changelog!"
342
343on load:
344 #set {_var::*} to contents from url "https://raw.githubusercontent.com/WheezyGold7931/Mineplex-Core/master/version.txt" Raw in GitHub does not update fast enough rip lel
345 set {_var::*} to contents from url "http://pastebin.com/raw/LG11nc8b"
346 loop {_var::*}:
347 if loop-value is not "{@MCRVER}":
348 broadcast "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download"
349 else:
350 stop
351 broadcast "&9Mineplex Core> &7Changelog:"
352 set {_var1::*} to contents from url "http://pastebin.com/raw/YDB8kU1v"
353 loop {_var1::*}:
354 broadcast "%loop-value%"
355
356 loop {_var::*}:
357 broadcast "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download"
358 broadcast "&9Mineplex Core> &7End of Changelog!"
359 if {mineplex.gadget.enabled} is not set:
360 set {mineplex.gadget.enabled} to true
361
362on join:
363 set join message to "&8Join> &7%player%"
364 updateRankAPI(player)
365 delete {mineplex.disguise.%player%}
366 execute console command "/ud %player%"
367 if {mineplex.level.%player%} is not set:
368 set {mineplex.level.%player%} to "&70"
369 delete {mineplex.lastm.%player%}
370 wait 1.5 seconds
371 if {mineplex.rank.%player%} is not set:
372 set {mineplex.rank.%player%} to ""
373 execute console command "/__mp__dp__ %player%"
374 if {mineplex.vanish.%player%} is not set:
375 set {mineplex.vanish.%player%} to false
376 if {mineplex.overidechat} is not set:
377 set {mineplex.overidechat} to true
378 if {indev} is not set:
379 set {indev} to true
380 if {mineplex.vanish.%player%} is true:
381 send ""
382 send ""
383 send "&6&lYou are currently incognito"
384 send "&eThis means you are invisible to all excepet for those who are"
385 send "&4Admin&6+"
386 send ""
387 send ""
388 execute player command "/__mp__st__"
389 set tab header to "&f&l%{mineplex.config.servername}% Network &a%player's world%" and footer to "&fVisit &a%{mineplex.config.website}% &ffor News, Forums, and Shop" for player
390 if {mineplex.pref.hpv.%player%} is false:
391 hide all players from player
392 if {mineplex.pref.hpv.%player%} is not set:
393 set {mineplex.pref.hpv.%player%} to true
394 if {mineplex.pref.pm.%player%} is not set:
395 set {mineplex.pref.pm.%player%} to true
396 if {mineplex.pref.pc.%player%} is not set:
397 set {mineplex.pref.pc.%player%} to true
398 if {mineplex.pref.gwen.%player%} is not set:
399 set {mineplex.pref.gwen.%player%} to true
400 if {mineplex.shards.%player%} is not set:
401 set {mineplex.shards.%player%} to 0
402 if {mineplex.gems.%player%} is not set:
403 set {mineplex.gems.%player%} to 0
404 if {mineplex.particle.active.%player%} is not set:
405 set {mineplex.particle.active.%player%} to false
406 if {mineplex.arrorw.active} is not set:
407 set {mineplex.arrow.active} to false
408 if {mineplex.adminmode.%player%} is true:
409 set {mineplex.adminmode.%player%} to false
410 loop all players:
411 if {mineplex.vanish.%loop-player%} is true:
412 add loop-player to {%player%.vanishlist::*}
413 loop all players:
414 if loop-player does not have permission "mineplex.admin":
415 hide {%player%.vanishlist::*} from all players
416 delete {%player%.vanishlist::*}
417
418on load:
419 if {mineplex.news.int} is not set:
420 set {mineplex.news.line1} to "§b§lMineplex Core Remake"
421 set {mineplex.news.line2} to "§a§lThe best remake for Mineplex Commands"
422 set {mineplex.news.line3} to "§3§lRate this on Spigot!"
423 set {mineplex.news.line4} to "§c§lCheck me out on SkUnity!"
424 set {mineplex.news.allow} to true
425 set {mineplex.news.int} to true
426 wait 5 seconds
427
428on quit:
429 set quit message to "&8Quit> &7%player%"
430
431#Mineplex Commands
432
433command /disguise [<string>] [<string>]:
434 permission: mineplex.admin
435 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
436 trigger:
437 if arg 1 is not set:
438 if {mineplex.disguise.%player%} is set:
439 send "&9Disguise> &7You are no longer disguised!"
440 execute console command "/ud %player%"
441 delete {mineplex.disguise.%player%}
442 set player tab name to "%{mineplex.rank.%player%}%&e%player%"
443 set {_br} to uncolored {mineplex.rank.%player%}
444 set {mineplex.api.displayrank.%player%} to "%{_br}%"
445 set {mineplex.api.displayname.%player%} to "%player%"
446 else:
447 send "&9Disguise> &7Command List:%nl%&4/disguise <player> &7Makes you appear as target player in chat and tab &4Admin"
448 else:
449 if {mineplex.disguise.%player%} is set:
450 send "&9Disguise> &7You are already disguised. Please undisguise by using /disguise"
451 else:
452 set {_n} to the length of arg 1
453 if {_n} is greater than 16:
454 send "&9Disguise> &7That disguise name is not permitted!"
455 stop
456 set {_p1} to "%arg-1%" parsed as offline player
457 if {_p1} has permission "mineplex.trainee" or "mineplex.youtube" or "mineplex.twitch":
458 send "&9Disguise> &7You may not disguise as people who are staff members, youtubers, and streamers."
459 stop
460 if {banned::%{_p1}%} or {muted::%{_p1}%} is set:
461 send "&9Disguise> &7You may not disguise as people who are muted or banned."
462 stop
463 send "&9Disguise> &7Disguise Active: &f%arg-1%"
464 if {mineplex.level.%arg-1%} is not set:
465 set {mineplex.level.%arg-1%} to "&70"
466 if {mineplex.rank.%arg-1%} is not set:
467 set {mineplex.rank.%arg-1%} to ""
468 execute console command "/odisguise %player% player %arg-1%"
469 set {mineplex.disguise.%player%} to "%arg-1%" parsed as offline player
470 set {_player} to arg 1
471 if {mineplex.rank.%{_player}%} is not set:
472 set {mineplex.rank.%{_player}%} to ""
473 set player tab name to "%{mineplex.rank.%{_player}%}%&e%arg-1%"
474 set {_br} to uncolored {mineplex.rank.%player%}
475 set {_dr} to uncolored {mineplex.rank.%{mineplex.disguise.%player%}%}
476 replace all " " in {_br} with ""
477 replace all " " in {_dr} with ""
478 if {_dr} is "":
479 set {_dr} to "No Rank"
480 set {mineplex.api.displayrank.%player%} to "%{_dr}% (%{_br}%)"
481 set {mineplex.api.displayname.%player%} to "%{mineplex.disguise.%player%}%"
482
483command /debugapi [<string>] [<string>] [<string>]:
484 trigger:
485 if arg 1 is not set:
486 send "&9API> &7Mineplex Core API"
487 send "&9API> &7/debugapi (api name)"
488 send "&9API> &7Current API's; &adisplayrank&7, &adisplayname"
489 send "&9API> &7Use /debugapi (api name) (player) to view a diffrent players's api output"
490 else:
491 if arg 2 is set:
492 set {_p} to "%arg-2%"
493 else:
494 set {_p} to "%player%"
495 if arg 1 is "displayrank":
496 send "&9API> &7Raw API Output; &f%{mineplex.api.displayrank.%{_p}%}%"
497 else if arg 1 is "displayname":
498 send "&9API> &7Raw API Output; &f%{mineplex.api.displayname.%{_p}%}%"
499 else:
500 send "&9API> &7Invalid API!"
501
502command /give [<string>] [<string>] [<string>] [<string>]:
503 aliases: /g, /item, /i
504 permission: mineplex.admin
505 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
506 trigger:
507 if arg 1 is not set:
508 send "&9Give: &7Listing Commands:"
509 send "&4/give (item) Admin"
510 send "&4/give (player) (item) (amount) Admin"
511 send "&4/give all (item) (amount) Admin"
512 else:
513 if arg 2 is not set:
514 set {_i} to "%arg-1%" parsed as an item
515 if {_i} is an item:
516 send "&9Give> &7You gave &e1 %{_i}% &7to &e%player%&7."
517 give player {_i}
518 else:
519 send "&9Item Search> &e0 &7matches for [&e%{_i}%&7]."
520 send "&9Item(s) Search> &7Invalid [&e%{_i}%&7]."
521 if arg 2 is set:
522 if arg 3 is set:
523 if arg 1 is "all":
524 set {_i} to "%arg-2%" parsed as an item
525 set {_a} to "%arg-3%" parsed as a number
526 if {_i} is an item:
527 if {_a} is a number:
528 send "&9Give> &7You gave &e%{_a}% %{_i}% &7to &eALL&7."
529 send "&9Give> &7You received &e%{_a}% %{_i}% &7from &e%player%&7." to all players
530 loop all players:
531 loop {_a} times:
532 give loop-player {_i}
533 else:
534 send "&9Give> &7Invalid Amount [%arg-3%]. Defaulting to [1]."
535 send "&9Give> &7You gave &e1 %{_i}% &7to &eALL&7."
536 send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to all players
537 loop all players:
538 give loop-player {_i}
539 else:
540 send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
541 send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
542 else:
543 set {_i} to "%arg-2%" parsed as an item
544 set {_a} to "%arg-3%" parsed as a number
545 set {_p} to "%arg-1%" parsed as a player
546 if {_i} is an item:
547 if {_p} is online:
548 if {_a} is a number:
549 send "&9Give> &7You gave &e%{_a}% %{_i}% &7to &e%{_p}%&7."
550 send "&9Give> &7You received &e%{_a}% %{_i}% &7from &e%player%&7." to {_p}
551 loop {_a} times:
552 give {_p} {_i}
553 else:
554 send "&9Give> &7Invalid Amount [%arg-3%]. Defaulting to [1]."
555 send "&9Give> &7You gave &e1 %{_i}% &7to &e%{_p}%&7."
556 send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to {_p}
557 give {_p} {_i}
558 else:
559 send "&9Online Player Search> &e0 &7matches for [&e%arg-1%&7]."
560 send "&9Online Player(s) Search> &7Invalid [&e%arg-1%&7]."
561 stop
562 else:
563 send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
564 send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
565 else:
566 if arg 1 is "all":
567 set {_i} to "%arg-2%" parsed as an item
568 if {_i} is an item:
569 send "&9Give> &7You gave &e1 %{_i}% &7to &eALL&7."
570 send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to all players
571 loop all players:
572 give loop-player {_i}
573 else:
574 send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
575 send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
576 else:
577 set {_i} to "%arg-2%" parsed as an item
578 set {_p} to "%arg-1%" parsed as a player
579 if {_i} is an item:
580 if {_p} is online:
581 send "&9Give> &7You gave &e1 %{_i}% &7to &e%{_p}%&7."
582 send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to {_p}
583 give {_p} {_i}
584 else:
585 send "&9Online Player Search> &e0 &7matches for [&e%arg-1%&7]."
586 send "&9Online Player(s) Search> &7Invalid [&e%arg-1%&7]."
587 stop
588 else:
589 send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
590 send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
591
592command /tpall:
593 permission: mineplex.owner
594 permission message: &9Permissions> &7This requires Permmission Rank [&9OWNER&7].
595 trigger:
596 send "&9Teleport> &7You teleported &e%amount of players% Players &7to yourself."
597 broadcast "&9Teleport> &7You teleported to &e%player%&7."
598 teleport all players to player
599
600command /__mp__st__:
601 trigger:
602 if {mineplex.news.allow} is true:
603 send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line1}%" for 3.5 seconds
604 wait 3 seconds
605 send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line2}%" for 3.5 seconds
606 wait 3 seconds
607 send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line3}%" for 3.5 seconds
608 wait 3 seconds
609 send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line4}%" for 3.5 seconds
610
611command /updatelevel [<string>] [<integer>]:
612 permission: mineplex.admin
613 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
614 trigger:
615 if arg 1 is set:
616 if arg 2 is set:
617 if arg 2 is less than 0:
618 set {_temp} to "&d%arg-2%"
619 set {mineplex.level.%arg-1%} to "%{_temp}%"
620 send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
621 stop
622 else if arg 2 is less than 20:
623 set {_temp} to "&7%arg-2%"
624 set {mineplex.level.%arg-1%} to "%{_temp}%"
625 send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
626 stop
627 else if arg 2 is less than 40:
628 set {_temp} to "&9%arg-2%"
629 set {mineplex.level.%arg-1%} to "%{_temp}%"
630 send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
631 stop
632 else if arg 2 is less than 60:
633 set {_temp} to "&2%arg-2%"
634 set {mineplex.level.%arg-1%} to "%{_temp}%"
635 send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
636 stop
637 else if arg 2 is less than 80:
638 set {_temp} to "&6%arg-2%"
639 set {mineplex.level.%arg-1%} to "%{_temp}%"
640 send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
641 stop
642 else if arg 2 is less than or equal to 100:
643 set {_temp} to "&c%arg-2%"
644 set {mineplex.level.%arg-1%} to "%{_temp}%"
645 send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
646 stop
647 else:
648 send "&9Level> &7There was a problem parsing your request...please try again."
649 else:
650 send "&9Level> &7/updatelevel (player) (level)"
651 else:
652 send "&9Level> &7/updatelevel (player) (level)"
653
654command /mcr:
655 trigger:
656 send "&9Plugin> &7Mineplex Core"
657 send "&9Plugin> &7Running MCR: &e{@MCRVER}"
658 send "&9Plugin> &7by WheezyGold7931, LimeGlass, Citrin_, and HappyLuigi"
659
660command /a [<text>]:
661 aliases: /admin
662 trigger:
663 if arg 1 is not set:
664 send "&9Admin> &7Corect Usage: /a (message)"
665 stop
666 if {mineplex.disguise.%player%} is set:
667 set {_p} to {mineplex.disguise.%player%}
668 else:
669 set {_p} to player
670 if player has permission "mineplex.trainee":
671 loop all players:
672 if loop-player has permission "mineplex.trainee":
673 send "&a%{mineplex.rank.%{_p}%}%%{_p}% &d%arg-1%" to loop-player
674 else:
675 send "&a%{mineplex.rank.%{_p}%}% %{_p}% &d%arg-1%"
676 loop all players:
677 if loop-player has permission "mineplex.trainee":
678 send "&a%{mineplex.rank.%{_p}%}%%{_p}% &d%{_p}%" to loop-player
679
680command /ma [<player>] [<text>]:
681 trigger:
682 if {mineplex.disguise.%player%} is set:
683 set {_p} to {mineplex.disguise.%player%}
684 else:
685 set {_p} to player
686 if player has permission "mineplex.trainee":
687 if argument 1 is set:
688 send "&d<-&6%{_p}% &d%arg-2%" to arg-1
689 loop all players:
690 if loop-player has permission "mineplex.trainee":
691 send "%{mineplex.rank.%{_p}%}%%{_p}% &d-> %{mineplex.rank.%arg-1%}%%arg-1% &d%arg-2%" to loop-player
692 else:
693 send "&9Message> &cErr...something went wrong?"
694 else:
695 send "&9Permissions> &7This requires Permmission Rank [&9TRAINEE&7]."
696
697command /vanish:
698 permission: mineplex.trainee
699 permission message: &9Permissions> &7This requires Permmission Rank [&9TRAINEE&7].
700 trigger:
701 if {mineplex.vanish.%player%} is true:
702 loop all offline players:
703 loop-value doesn't have permission "mineplex.admin"
704 add loop-value to {_vanishto::*}
705
706 reveal player from {_vanishto::*}
707 set {mineplex.vanish.%player%} to false
708 send "&9Incognito> &7You are no longer incognito. Your status will only change when you run &e/vanish &7again."
709 else:
710 loop all offline players:
711 loop-value doesn't have permission "mineplex.admin"
712 add loop-value to {_vanishto::*}
713
714 hide player from {_vanishto::*}
715 set {mineplex.vanish.%player%} to true
716 send "&9Incognito> &7You are now incognito. Your status will only change when you run &e/vanish &7again."
717 send ""
718 send ""
719 send "&6&lYou are currently incognito"
720 send "&eThis means you are invisible to all excepet for those who are"
721 send "&4Admin&f+"
722 send ""
723 send ""
724
725command /chatslow [<integer>]:
726 aliases: /cs
727 permission: mineplex.srmod
728 permission message: &9Permissions> &7This requires Permmission Rank [&9SR.MOD&7].
729 trigger:
730 if {mineplex.disguise.%player%} is set:
731 set {_p} to {mineplex.disguise.%player%}
732 else:
733 set {_p} to player
734 if argument 1 is set:
735 if {mineplex.chatsilence} is set:
736 send "&9Chat> &7Chat is in silence mode. Disable silence mode to activate slow chat."
737 stop
738 else:
739 if {mineplex.chatslow} is not set:
740 set {mineplex.chatslow} to "%arg-2% seconds" parsed as timespan
741 send "&9Chat> &6%{_p}% &7has set the chat delay to &6%arg-1%&7 seconds." to all players
742 else:
743 set {mineplex.chatslow} to "%arg-2% seconds" parsed as timespan
744 send "&9Chat> &6%{_p}% &7has enabled chat slow." to all players
745 send "&9Chat> &6%{_p}% &7has set the chat delay to &6%arg-1%&7 seconds." to all players
746 else:
747 if {mineplex.chatsilence} is set:
748 send "&9Chat> &7Chat is in silence mode. Disable silence mode to activate slow chat."
749 stop
750 else:
751 if {mineplex.chatslow} is set:
752 delete {mineplex.chatslow}
753 send "&9Chat> &6%{_p}% &7has disabled chat slow." to all players
754 else:
755 send "&9Message> &cYou didn't enter a time limit! Defaulting to 10 seconds."
756 set {mineplex.chatslow} to "10 seconds" parsed as timespan
757 send "&9Chat> &6%{_p}% &7has enabled chat slow." to all players
758 send "&9Chat> &6%{_p}% &7has set the chat delay to &610 &7seconds." to all players
759command /silence:
760 permission: mineplex.admin
761 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
762 trigger:
763 if {mineplex.chatslow} is set:
764 delete {mineplex.chatslow}
765 send "&9Chat> &6%player% &7has disabled chat slow." to all players
766 set {mineplex.chatsilence} to true
767 send "&9Chat> &7The chat has been silenced for Permanent." to all players
768 stop
769 if {mineplex.chatsilence} is set:
770 delete {mineplex.chatsilence}
771 send "&9Chat> &7The chat has been un-silenced." to all players
772 else:
773 set {mineplex.chatsilence} to true
774 send "&9Chat> &7The chat has been silenced for Permanent." to all players
775
776command /locate [<string>]:
777 aliases: /find, /where
778 permission: mineplex.mod
779 permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
780 trigger:
781 if argument 1 is set:
782 set {_tmp} to arg 1 parsed as an offline player
783 if {_tmp} is online:
784 set {_mineplex.locate.temp} to "%{_tmp}'s world%"
785 send "&9Locate> &7Located [&e%arg-1%&7] at &9%{_mineplex.locate.temp}%"
786 else:
787 send "&9Locate> &7Failed to locate [&e%arg-1%&7]."
788 else:
789 send "&9Locate> &7Player argument missing."
790
791command /tp [<player>] [<player>]:
792 permission: mineplex.mod
793 permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
794 trigger:
795 if argument 1 is set:
796 if argument 2 is set:
797 if player has permission "mineplex.admin":
798 teleport arg-1 to arg-2
799 send "&9Teleport> &7Teleported &6%arg-1% to &6%arg-2%&7."
800 else:
801 send "&9Permissions> &7This requires Permmission Rank [&9ADMIN&7]."
802 else:
803 teleport player to arg-1
804 send "&9Teleport> &7Teleported you to &6%arg-1%&7."
805 else:
806 send "&9Message> &cErr...something went wrong?"
807
808command /tphere [<player>]:
809 permission: mineplex.admin
810 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
811 trigger:
812 if argument 1 is set:
813 teleport arg-1 to player
814 send "&9Teleport> &7Teleported &6%arg-1% &7to you."
815 else:
816 send "&9Message> &cErr...something went wrong?"
817
818command /updaterank [<offline player>] [<string>]:
819 permission: mineplex.admin
820 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
821 trigger:
822 if argument 1 or argument 2 is not set:
823 send "&9Client Manager> &7Listing Rank Update Commands:"
824 send "&f/updaterank (player) (rank): &eupdates chosen player's rank to the chosen rank"
825 send ""
826 send "&9Rank Update> &7Listing Rank List:"
827 send "&9Ranks> &7MEMBER"
828 send "&9Ranks> &7ULTRA"
829 send "&9Ranks> &7HERO"
830 send "&9Ranks> &7LEGEND"
831 send "&9Ranks> &7TITAN"
832 send "&9Ranks> &7ETERNAL"
833 send "&9Ranks> &7TRAINEE"
834 send "&9Ranks> &7MOD"
835 send "&9Ranks> &7SRMOD"
836 send "&9Ranks> &7CMOD"
837 send "&9Ranks> &7ADMIN"
838 send "&9Ranks> &7LEADER"
839 send "&9Ranks> &7OWNER"
840 send "&9Ranks> &7BUILDER"
841 send "&9Ranks> &7SUPPORT"
842 send "&9Ranks> &7MEDIA"
843 send "&9Ranks> &7MAPLEAD"
844 send "&9Ranks> &7JRDEV"
845 send "&9Ranks> &7DEV"
846 send "&9Ranks> &7TWITCH"
847 send "&9Ranks> &7YOUTUBE"
848 send "&9Ranks> &7YT"
849 if argument 2 is "MEMBER":
850 if argument 2 is set: #These should now no longer mater so lel.
851 set {mineplex.rank.%arg-1%} to ""
852 execute console command "/__mp__dp__ %arg-1%"
853 send "&9Client Manager> &7%arg-1%'s rank has been updated to None!"
854 send "&9Client Manager> &7Your rank has been updated to None!" to arg 1
855 set arg-1 tab name to "&e%arg-1%"
856 else:
857 send "&9Message> &cErr...something went wrong?"
858 else if argument 2 is "ULTRA":
859 if argument 2 is set:
860 set {mineplex.rank.%arg-1%} to "&b&lULTRA "
861 execute console command "/__mp__dp__ %arg-1%"
862 send "&9Client Manager> &7%arg-1%'s rank has been updated to Ultra!"
863 send "&9Client Manager> &7Your rank has been updated to Ultra!" to arg 1
864 set arg-1 tab name to "&b&lULTRA &e%arg-1%"
865 updateRankAPI(arg-1)
866 else:
867 send "&9Message> &cErr...something went wrong?"
868 else if argument 2 is "HERO":
869 if argument 2 is set:
870 set {mineplex.rank.%arg-1%} to "&d&lHERO "
871 execute console command "/__mp__dp__ %arg-1%"
872 send "&9Client Manager> &7%arg-1%'s rank has been updated to Hero!"
873 send "&9Client Manager> &7Your rank has been updated to Hero!" to arg 1
874 set arg-1 tab name to "&d&lHERO &e%arg-1%"
875 updateRankAPI(arg-1)
876 else:
877 send "&9Message> &cErr...something went wrong?"
878 else if argument 2 is "LEGEND":
879 if argument 2 is set:
880 set {mineplex.rank.%arg-1%} to "&a&lLEGEND "
881 execute console command "/__mp__dp__ %arg-1%"
882 add "mineplex.legend" to arg-1's permissions
883 send "&9Client Manager> &7%arg-1%'s rank has been updated to Legend!"
884 send "&9Client Manager> &7Your rank has been updated to Legend!" to arg 1
885 set arg-1 tab name to "&a&lLEGEND &e%arg-1%"
886 updateRankAPI(arg-1)
887 else:
888 send "&9Message> &cErr...something went wrong?"
889 else if argument 2 is "TITAN":
890 if argument 2 is set:
891 set {mineplex.rank.%arg-1%} to "&c&lTITAN "
892 execute console command "/__mp__dp__ %arg-1%"
893 add "mineplex.legend" to arg-1's permissions
894 send "&9Client Manager> &7%arg-1%'s rank has been updated to Titan!"
895 send "&9Client Manager> &7Your rank has been updated to Titan!" to arg 1
896 set arg-1 tab name to "&c&lTITAN &e%arg-1%"
897 updateRankAPI(arg-1)
898 else:
899 send "&9Message> &cErr...something went wrong?"
900 else if argument 2 is "ETERNAL":
901 if argument 2 is set:
902 set {mineplex.rank.%arg-1%} to "&3&lETERNAL "
903 execute console command "/__mp__dp__ %arg-1%"
904 add "mineplex.legend" to arg-1's permissions
905 send "&9Client Manager> &7%arg-1%'s rank has been updated to Eternal!"
906 send "&9Client Manager> &7Your rank has been updated to Eternal!" to arg 1
907 set arg-1 tab name to "&3&lETERNAL &e%arg-1%"
908 updateRankAPI(arg-1)
909 else:
910 send "&9Message> &cErr...something went wrong?"
911 else if argument 2 is "TRAINEE":
912 if argument 2 is set:
913 set {mineplex.rank.%arg-1%} to "&6&lTRAINEE "
914 execute console command "/__mp__dp__ %arg-1%"
915 add "mineplex.trainee" to arg-1's permissions
916 send "&9Client Manager> &7%arg-1%'s rank has been updated to Trainee!"
917 send "&9Client Manager> &7Your rank has been updated to Trainee!" to arg 1
918 set arg-1 tab name to "&6&lTRAINEE &e%arg-1%"
919 updateRankAPI(arg-1)
920 else:
921 send "&9Message> &cErr...something went wrong?"
922 else if argument 2 is "MOD":
923 if argument 2 is set:
924 set {mineplex.rank.%arg-1%} to "&6&lMOD "
925 execute console command "/__mp__dp__ %arg-1%"
926 add "mineplex.trainee" to arg-1's permissions
927 add "mineplex.mod" to arg-1's permissions
928 add "mineplex.legend" to arg-1's permissions
929 send "&9Client Manager> &7%arg-1%'s rank has been updated to Mod!"
930 send "&9Client Manager> &7Your rank has been updated to Mod!" to arg 1
931 set arg-1 tab name to "&6&lMOD &e%arg-1%"
932 updateRankAPI(arg-1)
933 else:
934 send "&9Message> &cErr...something went wrong?"
935 else if argument 2 is "SRMOD":
936 if argument 2 is set:
937 set {mineplex.rank.%arg-1%} to "&6&lSR.MOD "
938 execute console command "/__mp__dp__ %arg-1%"
939 add "mineplex.trainee" to arg-1's permissions
940 add "mineplex.mod" to arg-1's permissions
941 add "mineplex.srmod" to arg-1's permissions
942 add "mineplex.legend" to arg-1's permissions
943 send "&9Client Manager> &7%arg-1%'s rank has been updated to Sr.Mod!"
944 send "&9Client Manager> &7Your rank has been updated to Sr.Mod!" to arg 1
945 set arg-1 tab name to "&6&lSR.MOD &e%arg-1%"
946 updateRankAPI(arg-1)
947 else:
948 send "&9Message> &cErr...something went wrong?"
949 else if argument 2 is "CMOD":
950 if argument 2 is set:
951 set {mineplex.rank.%arg-1%} to "&6&lC.MOD "
952 execute console command "/__mp__dp__ %arg-1%"
953 add "mineplex.trainee" to arg-1's permissions
954 add "mineplex.mod" to arg-1's permissions
955 add "mineplex.srmod" to arg-1's permissions
956 add "mineplex.legend" to arg-1's permissions
957 send "&9Client Manager> &7%arg-1%'s rank has been updated to C.Mod!"
958 send "&9Client Manager> &7Your rank has been updated to C.Mod!" to arg 1
959 set arg-1 tab name to "&6&lC.MOD &e%arg-1%"
960 updateRankAPI(arg-1)
961 else:
962 send "&9Message> &cErr...something went wrong?"
963 else if argument 2 is "ADMIN":
964 if argument 2 is set:
965 set {mineplex.rank.%arg-1%} to "&4&lADMIN "
966 execute console command "/__mp__dp__ %arg-1%"
967 add "mineplex.trainee" to arg-1's permissions
968 add "mineplex.legend" to arg-1's permissions
969 add "mineplex.mod" to arg-1's permissions
970 add "mineplex.builder" to arg-1's permissions
971 add "mineplex.srmod" to arg-1's permissions
972 add "mineplex.admin" to arg-1's permissions
973 send "&9Client Manager> &7%arg-1%'s rank has been updated to Admin!"
974 send "&9Client Manager> &7Your rank has been updated to Admin!" to arg 1
975 set arg-1 tab name to "&4&lADMIN &e%arg-1%"
976 updateRankAPI(arg-1)
977 else:
978 send "&9Message> &cErr...something went wrong?"
979 else if argument 2 is "LEADER":
980 if argument 2 is set:
981 set {mineplex.rank.%arg-1%} to "&4&lLEADER "
982 execute console command "/__mp__dp__ %arg-1%"
983 add "mineplex.trainee" to arg-1's permissions
984 add "mineplex.mod" to arg-1's permissions
985 add "mineplex.builder" to arg-1's permissions
986 add "mineplex.srmod" to arg-1's permissions
987 add "mineplex.admin" to arg-1's permissions
988 add "mineplex.leader" to arg-1's permissions
989 send "&9Client Manager> &7%arg-1%'s rank has been updated to Leader!"
990 send "&9Client Manager> &7Your rank has been updated to Leader!" to arg 1
991 set arg-1 tab name to "&4&lLEADER &e%arg-1%"
992 else:
993 send "&9Message> &cErr...something went wrong?"
994 else if argument 2 is "OWNER":
995 if argument 2 is set:
996 set {mineplex.rank.%arg-1%} to "&4&lOWNER "
997 execute console command "/__mp__dp__ %arg-1%"
998 add "mineplex.trainee" to arg-1's permissions
999 add "mineplex.mod" to arg-1's permissions
1000 add "mineplex.srmod" to arg-1's permissions
1001 add "mineplex.admin" to arg-1's permissions
1002 add "mineplex.jrdev" to arg-1's permissions
1003 add "mineplex.dev" to arg-1's permissions
1004 add "mineplex.builder" to arg-1's permissions
1005 add "mineplex.leader" to arg-1's permissions
1006 add "mineplex.owner" to arg-1's permissions
1007 send "&9Client Manager> &7%arg-1%'s rank has been updated to Owner!"
1008 send "&9Client Manager> &7Your rank has been updated to Owner!" to arg 1
1009 set arg-1 tab name to "&4&lOWNER &e%arg-1%"
1010 updateRankAPI(arg-1)
1011 else:
1012 send "&9Message> &cErr...something went wrong?"
1013 else if argument 2 is "BUILDER":
1014 if argument 2 is set:
1015 set {mineplex.rank.%arg-1%} to "&9&lBUILDER "
1016 execute console command "/__mp__dp__ %arg-1%"
1017 add "mineplex.builder" to arg-1's permissions
1018 send "&9Client Manager> &7%arg-1%'s rank has been updated to Builder!"
1019 send "&9Client Manager> &7Your rank has been updated to Builder!" to arg 1
1020 set arg-1 tab name to "&9&lBUIDLER &e%arg-1%"
1021 updateRankAPI(arg-1)
1022 else:
1023 send "&9Message> &cErr...something went wrong?"
1024 else if argument 2 is "SUPPORT":
1025 if argument 2 is set:
1026 set {mineplex.rank.%arg-1%} to "&9&lSUPPORT "
1027 execute console command "/__mp__dp__ %arg-1%"
1028 add "mineplex.builder" to arg-1's permissions
1029 add "mineplex.trainee" to arg-1's permissions
1030 add "mineplex.mod" to arg-1's permissions
1031 add "mineplex.srmod" to arg-1's permissions
1032 add "mineplex.legend" to arg-1's permissions
1033 send "&9Client Manager> &7%arg-1%'s rank has been updated to Support!"
1034 send "&9Client Manager> &7Your rank has been updated to Support!" to arg 1
1035 set arg-1 tab name to "&9&lSUPPORT &e%arg-1%"
1036 updateRankAPI(arg-1)
1037 else:
1038 send "&9Message> &cErr...something went wrong?"
1039 else if argument 2 is "MEDIA":
1040 if argument 2 is set:
1041 set {mineplex.rank.%arg-1%} to "&9&lMEDIA "
1042 execute console command "/__mp__dp__ %arg-1%"
1043 add "mineplex.builder" to arg-1's permissions
1044 add "mineplex.trainee" to arg-1's permissions
1045 add "mineplex.mod" to arg-1's permissions
1046 add "mineplex.srmod" to arg-1's permissions
1047 add "mineplex.legend" to arg-1's permissions
1048 send "&9Client Manager> &7%arg-1%'s rank has been updated to Media!"
1049 send "&9Client Manager> &7Your rank has been updated to Media!" to arg 1
1050 set arg-1 tab name to "&9&lMEDIA &e%arg-1%"
1051 updateRankAPI(arg-1)
1052 else:
1053 send "&9Message> &cErr...something went wrong?"
1054 else if argument 2 is "MAPLEAD":
1055 if argument 2 is set:
1056 set {mineplex.rank.%arg-1%} to "&9&lMAPLEAD "
1057 execute console command "/__mp__dp__ %arg-1%"
1058 add "mineplex.builder" to arg-1's permissions
1059 send "&9Client Manager> &7%arg-1%'s rank has been updated to Maplead!"
1060 send "&9Client Manager> &7Your rank has been updated to Maplead!" to arg 1
1061 set arg-1 tab name to "&9&lMAPLEAD &e%arg-1%"
1062 updateRankAPI(arg-1)
1063 else:
1064 send "&9Message> &cErr...something went wrong?"
1065 else if argument 2 is "JRDEV":
1066 if argument 2 is set:
1067 set {mineplex.rank.%arg-1%} to "&c&lJR.DEV "
1068 execute console command "/__mp__dp__ %arg-1%"
1069 add "mineplex.trainee" to arg-1's permissions
1070 add "mineplex.mod" to arg-1's permissions
1071 add "mineplex.srmod" to arg-1's permissions
1072 add "mineplex.builder" to arg-1's permissions
1073 add "mineplex.jrdev" to arg-1's permissions
1074 send "&9Client Manager> &7%arg-1%'s rank has been updated to Jr.Dev!"
1075 send "&9Client Manager> &7Your rank has been updated to Jr.Dev!" to arg 1
1076 set arg-1 tab name to "&c&lJR.DEV &e%arg-1%"
1077 updateRankAPI(arg-1)
1078 else:
1079 send "&9Message> &cErr...something went wrong?"
1080 else if argument 2 is "DEV":
1081 if argument 2 is set:
1082 set {mineplex.rank.%arg-1%} to "&4&lDEV "
1083 execute console command "/__mp__dp__ %arg-1%"
1084 add "mineplex.trainee" to arg-1's permissions
1085 add "mineplex.mod" to arg-1's permissions
1086 add "mineplex.srmod" to arg-1's permissions
1087 add "mineplex.admin" to arg-1's permissions
1088 add "mineplex.leader" to arg-1's permissions
1089 add "mineplex.owner" to arg-1's permissions
1090 add "mineplex.builder" to arg-1's permissions
1091 add "mineplex.dev" to arg-1's permissions
1092 add "mineplex.admin" to arg-1's permissions
1093 send "&9Client Manager> &7%arg-1%'s rank has been updated to Dev!"
1094 send "&9Client Manager> &7Your rank has been updated to Dev!" to arg 1
1095 set arg-1 tab name to "&4&lDEV &e%arg-1%"
1096 updateRankAPI(arg-1)
1097 else:
1098 send "&9Message> &cErr...something went wrong?"
1099 else if argument 2 is "TWITCH":
1100 if argument 2 is set:
1101 set {mineplex.rank.%arg-1%} to "&5&lTWITCH "
1102 execute console command "/__mp__dp__ %arg-1%"
1103 add "mineplex.twitch" to arg-1's permissions
1104 send "&9Client Manager> &7%arg-1%'s rank has been updated to Twitch!"
1105 send "&9Client Manager> &7Your rank has been updated to Twitch!" to arg 1
1106 set arg-1 tab name to "&5&lTWITCH &e%arg-1%"
1107 updateRankAPI(arg-1)
1108 else:
1109 send "&9Message> &cErr...something went wrong?"
1110 else if argument 2 is "YOUTUBE":
1111 if argument 2 is set:
1112 set {mineplex.rank.%arg-1%} to "&c&lYOUTUBE "
1113 execute console command "/__mp__dp__ %arg-1%"
1114 add "mineplex.youtube" to arg-1's permissions
1115 send "&9Client Manager> &7%arg-1%'s rank has been updated to Youtube!"
1116 send "&9Client Manager> &7Your rank has been updated to Youtube!" to arg 1
1117 set arg-1 tab name to "&c&lYOUTUBE &e%arg-1%"
1118 updateRankAPI(arg-1)
1119 else:
1120 send "&9Message> &cErr...something went wrong?"
1121 else if argument 2 is "YT":
1122 if argument 2 is set:
1123 set {mineplex.rank.%arg-1%} to "&5&lYT "
1124 execute console command "/__mp__dp__ %arg-1%"
1125 add "mineplex.youtube" to arg-1's permissions
1126 send "&9Client Manager> &7%arg-1%'s rank has been updated to YT!"
1127 send "&9Client Manager> &7Your rank has been updated to YT!" to arg 1
1128 set arg-1 tab name to "&5&lYT &e%arg-1%"
1129 updateRankAPI(arg-1)
1130 else:
1131 send "&9Client Manager> tf?"
1132 else:
1133 send "&9Client Manager> &c&lInvalid rank!"
1134
1135command /testrank [<offline player>] [<string>]:
1136 permission: mineplex.srmod
1137 permission message: &9Permissions> &7This requires Permmission Rank [&6SR.MOD&7].
1138 trigger:
1139 if arg 1 is not set:
1140 send "&9Client Manager> &7/testrank joeschmo ETERNAL"
1141 send "&9Client Manager> &7TestRanks expire on login/logout!"
1142 else:
1143 if arg 2 is not set:
1144 send "&9Client Manager> &7/testrank joeschmo ETERNAL"
1145 else:
1146 if arg 1 is online:
1147 if arg 2 is "ULTRA":
1148 set {mineplex.testrank.%arg-1%} to {mineplex.rank.%arg-1%}
1149 set {mineplex.rank.%arg-1%} to "&b&lULTRA "
1150 execute console command "/__mp__dp__ %arg-1%"
1151 set {_or} to uncolored {mineplex.testrank.%arg-1%}
1152 send "&9Client Manager> &7%arg-1%'s rank has been updated to %arg-2%!"
1153 send "&9Client Manager> &7%arg-1%'s rank will be reset to %{_or}%on your login!"
1154 send "&9Client Manager> &7Your rank has been updated to %arg-2%!" to arg 1
1155 send "&9Client Manager> &7Your rank will be reset to %{_or}%on your login!" to arg 1
1156 set arg-1 tab name to "&b&lULTRA &e%arg-1%"
1157 updateRankAPI(arg-1)
1158 else if arg 2 is "HERO":
1159 set {mineplex.testrank.%arg-1%} to {mineplex.rank.%arg-1%}
1160 set {mineplex.rank.%arg-1%} to "&d&lHERO "
1161 execute console command "/__mp__dp__ %arg-1%"
1162 set {_or} to uncolored {mineplex.testrank.%arg-1%}
1163 send "&9Client Manager> &7%arg-1%'s rank has been updated to %arg-2%!"
1164 send "&9Client Manager> &7%arg-1%'s rank will be reset to %{_or}%on your login!"
1165 send "&9Client Manager> &7Your rank has been updated to %arg-2%!" to arg 1
1166 send "&9Client Manager> &7Your rank will be reset to %{_or}%on your login!" to arg 1
1167 set arg-1 tab name to "&d&lHERO &e%arg-1%"
1168 updateRankAPI(arg-1)
1169 else if arg 2 is "LEGEND":
1170 set {mineplex.testrank.%arg-1%} to {mineplex.rank.%arg-1%}
1171 set {mineplex.rank.%arg-1%} to "&a&lLEGEND "
1172 execute console command "/__mp__dp__ %arg-1%"
1173 set {_or} to uncolored {mineplex.testrank.%arg-1%}
1174 send "&9Client Manager> &7%arg-1%'s rank has been updated to %arg-2%!"
1175 send "&9Client Manager> &7%arg-1%'s rank will be reset to %{_or}%on your login!"
1176 send "&9Client Manager> &7Your rank has been updated to %arg-2%!" to arg 1
1177 send "&9Client Manager> &7Your rank will be reset to %{_or}%on your login!" to arg 1
1178 set arg-1 tab name to "&a&lLEGEND &e%arg-1%"
1179 updateRankAPI(arg-1)
1180 else if arg 2 is "TITAN":
1181 set {mineplex.testrank.%arg-1%} to {mineplex.rank.%arg-1%}
1182 set {mineplex.rank.%arg-1%} to "&c&lTITAN "
1183 execute console command "/__mp__dp__ %arg-1%"
1184 set {_or} to uncolored {mineplex.testrank.%arg-1%}
1185 send "&9Client Manager> &7%arg-1%'s rank has been updated to %arg-2%!"
1186 send "&9Client Manager> &7%arg-1%'s rank will be reset to %{_or}%on your login!"
1187 send "&9Client Manager> &7Your rank has been updated to %arg-2%!" to arg 1
1188 send "&9Client Manager> &7Your rank will be reset to %{_or}%on your login!" to arg 1
1189 set arg-1 tab name to "&c&lTITAN &e%arg-1%"
1190 updateRankAPI(arg-1)
1191 else if arg 2 is "ETERNAL":
1192 set {mineplex.testrank.%arg-1%} to {mineplex.rank.%arg-1%}
1193 set {mineplex.rank.%arg-1%} to "&3&lETERNAL "
1194 execute console command "/__mp__dp__ %arg-1%"
1195 set {_or} to uncolored {mineplex.testrank.%arg-1%}
1196 send "&9Client Manager> &7%arg-1%'s rank has been updated to %arg-2%!"
1197 send "&9Client Manager> &7%arg-1%'s rank will be reset to %{_or}%on your login!"
1198 send "&9Client Manager> &7Your rank has been updated to %arg-2%!" to arg 1
1199 send "&9Client Manager> &7Your rank will be reset to %{_or}%on your login!" to arg 1
1200 set arg-1 tab name to "&3&lETERNAL &e%arg-1%"
1201 updateRankAPI(arg-1)
1202 else:
1203 send "&9Client Manager> &c&lInvalid rank!"
1204
1205command /getadmin:
1206 permission: mineplex.jrdev
1207 permission message: &9Permissions> &7This requires Permmission Rank [&9JR.DEV&7].
1208 trigger:
1209 if {mineplex.rank.%player%} is "&c&lJR.DEV ":
1210 if {mineplex.disguise.%player%} is set:
1211 set {_p} to {mineplex.disguise.%player%}
1212 else:
1213 set {_p} to player
1214 if {mineplex.adminmode.%player%} is true:
1215 remove "mineplex.admin" from player's permissions
1216 set {mineplex.adminmode.%player%} to false
1217 send "&9Admin Mode> &7%{_p}% Admin Mode: &cFalse"
1218 else:
1219 set {mineplex.adminmode.%player%} to true
1220 add "mineplex.admin" to player's permissions
1221 send "&9Admin Mode> &7%{_p}% Admin Mode: &aTrue"
1222 else:
1223 send "&9Admin Mode> &7/getadmin is only for JR.DEV!"
1224
1225command /__mp__dp__ <player>:
1226 trigger:
1227 remove "mineplex.trainee" from arg-1's permissions
1228 remove "mineplex.legend" from arg-1's permissions
1229 remove "mineplex.mod" from arg-1's permissions
1230 remove "mineplex.srmod" from arg-1's permissions
1231 remove "mineplex.admin" from arg-1's permissions
1232 remove "mineplex.leader" from arg-1's permissions
1233 remove "mineplex.owner" from arg-1's permissions
1234 remove "mineplex.jrdev" from arg-1's permissions
1235 remove "mineplex.dev" from arg-1's permissions
1236 remove "mineplex.twitch" from arg-1's permissions
1237 remove "mineplex.youtube" from arg-1's permissions
1238 remove "mineplex.builder" from arg-1's permissions
1239
1240#command /report [<string>] [<string>]:
1241
1242#To Lazy to Move This
1243on right click:
1244 if player is holding chest:
1245 if name of player's tool is "&aCosmetic Menu":
1246 cancel event
1247 open chest with 6 rows named "Inventory" to player
1248 wait 2 ticks
1249 format slot 4 of player with 409 named "&b&l%{mineplex.shards.%player%}% Treasure Shards" with lore " ||&7This seems like it might come in||&7handy. Maybe I can collect more!" to be unstealable
1250 format slot 10 of player with nether star named "&a&lParticle Effect" with lore " ||&7Show everyone how cool you||&7are with swirly particles that||&7follow you when you walk!||&8Visible Everywhere|| ||&fYou own 1/1|| ||&fActive: &e%{mineplex.particle.active.%player%}%||&aLeft-Click to Toggle" to close then run [execute player command "/say hi"]
1251 format slot 12 of player with arrow named "&a&lArrow Effect" with lore " ||&7Your arrows will now leave||&7particle trails as they soar through the air.||&8Visible in Games|| ||&fYou own 1/1|| ||&fActive: &e%{mineplex.arrow.active.%player%}%||&aLeft-Click to Toggle" to close then run [execute player command "/say hi "]
1252 format slot 14 of player with golden boots named " " with lore " " to close
1253 format slot 16 of player with bone named " " with lore " " to close
1254
1255command /cosmetic-system <integer>:
1256 trigger:
1257 if arg 1 is 1:
1258 stop
1259
1260command /shard [<offline player>] [<string>] [<string>]:
1261 permission: mineplex.admin
1262 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
1263 trigger:
1264 if arg 1 is not set:
1265 send "&9Shard> &7Missing Args: &e/shard <player> <amount>"
1266 else:
1267 if arg 2 is not set:
1268 send "&9Shard> &7Missing Args: &e/shard <player> <amount>"
1269 else:
1270 if arg 1 is not online:
1271 send "&9Shard> &7Could not find player &e%arg-1%"
1272 else:
1273 set {_num} to arg 2 parsed as an integer
1274 if {_num} is an integer:
1275 add {_num} to {mineplex.shards.%arg-1%}
1276 send "&9Shard> &7You gave &e%arg-2% Shards &7to &e%arg-1%&7."
1277 send "&9Shard> &e%player% &7gave you &e%arg-2% Shards&7."
1278 else:
1279 send "&9Shard> &7Invalid Shards Amount"
1280
1281command /gem [<offline player>] [<string>] [<string>]:
1282 permission: mineplex.admin
1283 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
1284 trigger:
1285 if arg 1 is not set:
1286 send "&9Gem> &7Missing Args: &e/gem <player> <amount>"
1287 else:
1288 if arg 2 is not set:
1289 send "&9Gem> &7Missing Args: &e/gem <player> <amount>"
1290 else:
1291 if arg 1 is not online:
1292 send "&9Gem> &7Could not find player &e%arg-1%"
1293 else:
1294 set {_num} to arg 2 parsed as an integer
1295 if {_num} is an integer:
1296 add {_num} to {mineplex.gems.%arg-1%}
1297 send "&9Gem> &7You gave &e%arg-2% Gems &7to &e%arg-1%&7."
1298 send "&9Gem> &e%player% &7gave you &e%arg-2% Gems&7."
1299 else:
1300 send "&9Gem> &7Invalid Gems Amount"
1301
1302command /gadget:
1303 permission: mineplex.admin
1304 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
1305 trigger:
1306 if {mineplex.gadget.enabled} is true:
1307 set {mineplex.gadget.enabled} to false
1308 broadcast "&f&lGadgets/Mounts are now &c&lDisabled"
1309 else:
1310 set {mineplex.gadget.enabled} to true
1311 broadcast "&f&lGadgets/Mounts are now &a&lEnabled"
1312
1313#command /chestmeup:
1314# trigger:
1315# give player chest named "&aCosmetic Menu"
1316
1317command /s [<text>]:
1318 permission: mineplex.mod
1319 permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
1320 trigger:
1321 if {mineplex.disguise.%player%} is set:
1322 set {_p} to {mineplex.disguise.%player%}
1323 else:
1324 set {_p} to player
1325 if argument 1 is set:
1326 broadcast "&f&l%{_p}% &b%arg-1%"
1327 else:
1328 send "&9Broadcast> &7Corect Usage: /s <message>."
1329
1330command /gm [<player>]:
1331 permission: mineplex.builder
1332 permission message: &9Permissions> &7This requires Permission Rank [&9ADMIN&7].
1333 trigger:
1334 if {mineplex.disguise.%player%} is set:
1335 set {_p} to {mineplex.disguise.%player%}
1336 else:
1337 set {_p} to player
1338 if argument 1 is not set:
1339 if player's gamemode is survival:
1340 set the player's gamemode to creative
1341 send "&9Game Mode> &7%{_p}% Creative Mode: &aTrue"
1342 else:
1343 set the player's gamemode to survival
1344 send "&9Game Mode> &7%{_p}% Creative Mode: &cFalse"
1345 else:
1346 if arg-1's gamemode is survival:
1347 set the arg-1's gamemode to creative
1348 send "&9Game Mode> &7%arg-1% Creative Mode: &aTrue"
1349 else:
1350 set the arg-1's gamemode to survival
1351 send "&9Game Mode> &7%arg-1% Creative Mode: &cFalse"
1352
1353command /message [<player>] [<text>]:
1354 aliases: /tell, /m, /w
1355 trigger:
1356 if {mineplex.disguise.%player%} is set:
1357 set {_p} to {mineplex.disguise.%player%}
1358 else:
1359 set {_p} to player
1360 if argument 1 is set:
1361 if argument 2 is set:
1362 if {mineplex.pref.pm.%arg-1%} is false:
1363 send "&d%arg-1% has private messaging disabled."
1364 stop
1365 send "&6&l%{_p}% > %arg-1% &e&l%arg-2%"
1366 send "&6&l%{_p}% > %arg-1% &e&l%arg-2%" to arg-1
1367 set {mineplex.lastm.%player%} to "%arg-1%" parsed as player
1368 else:
1369 send "&9Message> &cErr...something went wrong?"
1370 else:
1371 send "&9Message> &cErr...something went wrong?"
1372
1373on command "/tell":
1374 cancel event
1375
1376
1377command /ping:
1378 trigger:
1379 send "&9Ping> &7PONG!"
1380
1381command /news [<string>] [<string>] [<string>]:
1382 permission: mineplex.admin
1383 permission message: &9Permissions> &7This requires Permission Rank [&9ADMIN&7].
1384 trigger:
1385 if arg 1 is not set:
1386 send "&9News Manager> &7Available news arguments for this command:"
1387 send "&6/news list &7Lists (numbered) stored news messages from database. &cAdmin"
1388 send "&6/news add <newsEntry> &7Adds specified news entry string to database at end of table. &cAdmin"
1389 send "&6/news delete ## &7Removes specified (numbered) news entry string from database. &cAdmin"
1390 send "&6/news set ## <newsEntry> &7Updates specified (numbered) news entry string from database. &cAdmin"
1391 send "&c*Please Note: &7Updates to server news entries from the database are on a 4 minute cycle! &cAdmin"
1392 else:
1393 if arg 1 is "list":
1394 send "&9Hub Manager> &7Current server news messages:"
1395 send "&9Hub Manager> &6News 1 &7: &f%{mineplex.news.line1}%"
1396 send "&9Hub Manager> &6News 2 &7: &f%{mineplex.news.line2}%"
1397 send "&9Hub Manager> &6News 3 &7: &f%{mineplex.news.line3}%"
1398 send "&9Hub Manager> &6News 4 &7: &f%{mineplex.news.line4}%"
1399 else if arg 1 is "add":
1400 if arg 2 is set:
1401 set {_news} to "%arg-2%"
1402 if arg 3 is set:
1403 set {_news} to "%arg-2% %arg-3%"
1404 replace all "&" with "§" in {_news}
1405 if {mineplex.news.line1} is "":
1406 set {mineplex.news.line1} to {_news}
1407 send "&9Hub Manager> &7The news entry: &6%{_news}% &7has been added to the database!"
1408 else if {mineplex.news.line2} is "":
1409 set {mineplex.news.line2} to {_news}
1410 send "&9Hub Manager> &7The news entry: &6%{_news}% &7has been added to the database!"
1411 else if {mineplex.news.line3} is "":
1412 set {mineplex.news.line3} to {_news}
1413 send "&9Hub Manager> &7The news entry: &6%{_news}% &7has been added to the database!"
1414 else if {mineplex.news.line4} is "":
1415 set {mineplex.news.line4} to {_news}
1416 send "&9Hub Manager> &7The news entry: &6%{_news}% &7has been added to the database!"
1417 else:
1418 send "&9Hub Manager> &c&lNo free news slots!"
1419 else:
1420 send "&9Hub Manager> &cYour arguments are inappropriate for this command!"
1421 else if arg 1 is "delete":
1422 if arg 2 is set:
1423 if arg 2 is "1":
1424 set {mineplex.news.line1} to ""
1425 send "&9Hub Manager> &7The news entry at position &61 &7has been deleted!"
1426 else if arg 2 is "2":
1427 set {mineplex.news.line2} to ""
1428 send "&9Hub Manager> &7The news entry at position &62 &7has been deleted!"
1429 else if arg 2 is "3":
1430 set {mineplex.news.line3} to ""
1431 send "&9Hub Manager> &7The news entry at position &63 &7has been deleted!"
1432 else if arg 2 is "4":
1433 set {mineplex.news.line4} to ""
1434 send "&9Hub Manager> &7The news entry at position &64 &7has been deleted!"
1435 else:
1436 send "&9Hub Manager> &cThe specified new position is invalid!"
1437 else:
1438 send "&9Hub Manager> &cYour arguments are inappropriate for this command!"
1439 else if arg 1 is "set":
1440 if arg 2 is set:
1441 if arg 3 is set:
1442 set {_news} to arg 3
1443 replace all "&" with "§" in {_news}
1444 if arg 2 is "1":
1445 set {mineplex.news.line1} to {_news}
1446 send "&9Hub Manager> &7The news entry at position &61 &7has been updated to: %{_news}%"
1447 else if arg 2 is "2":
1448 set {mineplex.news.line2} to {_news}
1449 send "&9Hub Manager> &7The news entry at position &62 &7has been updated to: %{_news}%"
1450 else if arg 2 is "3":
1451 set {mineplex.news.line3} to {_news}
1452 send "&9Hub Manager> &7The news entry at position &63 &7has been updated to: %{_news}%"
1453 else if arg 2 is "4":
1454 set {mineplex.news.line4} to {_news}
1455 send "&9Hub Manager> &7The news entry at position &64 &7has been updated to: %{_news}%"
1456 else:
1457 send "&9Hub Manager> &cThe specified new position is invalid!"
1458 else:
1459 send "&9Hub Manager> &cYour arguments are inappropriate for this command!"
1460 else:
1461 send "&9Hub Manager> &cYour arguments are inappropriate for this command!"
1462 else:
1463 send "&9News Manager> &7Available news arguments for this command:"
1464 send "&6/news list &7Lists (numbered) stored news messages from database. &cAdmin"
1465 send "&6/news add <newsEntry> &7Adds specified news entry string to database at end of table. &cAdmin"
1466 send "&6/news delete ## &7Removes specified (numbered) news entry string from database. &cAdmin"
1467 send "&6/news set ## <newsEntry> &7Updates specified (numbered) news entry string from database. &cAdmin"
1468 send "&c*Please Note: &7Updates to server news entries from the database are on a 4 minute cycle! &cAdmin"
1469
1470command /r [<text>]:
1471 aliases: /reply
1472 trigger:
1473 if {mineplex.disguise.%player%} is set:
1474 set {_p} to {mineplex.disguise.%player%}
1475 else:
1476 set {_p} to player
1477 if {mineplex.lastm.%player%} is set:
1478 if argument 1 is set:
1479 send "&6&l%{_p}% > %{mineplex.lastm.%player%}% &e&l%arg-1%"
1480 send "&6&l%{_p}% > %{mineplex.lastm.%player%}% &e&l%arg-1%" to {mineplex.lastm.%player%}
1481 else:
1482 send "&9Message> &cErr...something went wrong?"
1483 else:
1484 send "&9Message> &7You have not messaged anyone recently."
1485
1486command /party [<string>] [<player>]:
1487 aliases: /z
1488 trigger:
1489 if argument 1 is not set:
1490 send "&9Party> &7Listing Party Commands:"
1491 send "&f/party <Player>: &eJoin/Create/Invite Player"
1492 send "&f/party leave: &eLeave your current party"
1493 send "&f/party kick <Player>: &eKick player from your Party"
1494 send "&f/party info: &eDisplays info on the current Party."
1495 else:
1496 if argument 1 is "kick":
1497 if {party.%player%} is not set:
1498 message "&9Party> &7You don't have a party"
1499 else:
1500 if {party.%player%} is not player:
1501 message "&9Party> &7You have to be a party leader to do this"
1502 stop
1503 if player arg is not set:
1504 message "&9Party> &7Player needed. /party kick <player>"
1505 else:
1506 if {party.%player%::*} doesn't contain player arg:
1507 message "&9Party> &7The player needs to be in your party"
1508 stop
1509 message "&9Party> &7You kicked %player arg% from the party"
1510 message "&9Party> &7You've been kicked by %player% from his party" to player arg
1511 loop {party.%player%::*}:
1512 if loop-value = player arg:
1513 delete {party.%player%::%loop-index%}
1514 delete {party.%player arg%}
1515 delete {party.%player arg%.chat}
1516 else if arg 1 is "leave":
1517 if {party.%player%} is not set:
1518 message "&9Party> &7You don't have a party"
1519 else:
1520 if {party.%player%} is player:
1521 message "&9Party> &7You can't leave if you are the leader. Do /party disband"
1522 stop
1523 message "&9Party> &7You left your party"
1524 message "&9Party> &7%player% left your party" to {party.%player%}
1525 set {party.%player%.chat} to false
1526 loop {party.%{party.%player%}%::*}:
1527 if loop-value = player:
1528 delete {party.%{party.%player%}%::%loop-index%}
1529 delete {party.%player%}
1530 delete {party.%player%.chat}
1531 else if arg 1 is "disband":
1532 if {party.%player%} is not set:
1533 message "&9Party> &cYou don't have a party"
1534 else:
1535 if {party.%player%} is not player:
1536 message "&9Party> &7You have to be a party leader to do this"
1537 stop
1538 message "&9Party> &7You disband your party"
1539 loop {party.%player%::*}:
1540 loop-value is not player:
1541 message "&9Party> &7Your party has been disbanded" to loop-value
1542 delete {party.%loop-value%.chat}
1543 delete {party.%loop-value%}
1544 delete {party.%player%}
1545 delete {party.%player%.chat}
1546 delete {party.%player%::*}
1547 else if arg 1 is "info":
1548 if {party.%player%} is not set:
1549 message "&9Party> &7You don't have a party"
1550 else:
1551 message "&9Party> &7Party Details:"
1552 message "Party Leader: &7%{party.%player%}%"
1553 set {_partyMember} to ""
1554 loop {party.%{party.%player%}%::*}:
1555 set {_partyMember} to "%{_partyMember}% %loop-value%"
1556 message "Your Party: &7%{_partyMember}%"
1557 else:
1558 set {_mineplex.last.party} to "%arg-1%" parsed as player
1559 if {_mineplex.last.party} is online:
1560 if {party.%player%} is set:
1561 add {_mineplex.last.party} to {party.%player%::*}
1562 set {party.%player%.chat} to true
1563 set {party.%arg-1%.chat} to true
1564 set {party.%{_mineplex.last.party}%} to player
1565 message "&9Party> &7You invited %{_mineplex.last.party}% to the party."
1566 else:
1567 set {party.%player%} to player
1568 message "&9Party> &7Created a party."
1569 add player to {party.%player%::*}
1570 make player execute command "/party %arg-1%"
1571 else:
1572 send "&9Party> &7That player is not online."
1573
1574command /announce [<text>]:
1575 permission: mineplex.admin
1576 permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
1577 trigger:
1578 if argument 1 is set:
1579 send all players title "&eAnnouncement" with subtitle "&f%arg-1%" for 10 seconds
1580 broadcast "&9Announcement> &b%arg-1%"
1581 else:
1582 send "&9Message> &cErr...something went wrong?"
1583
1584#Punish Systems/Commands
1585
1586on connect:
1587 if {banned::%player%} is true:
1588 if {banned::%player%::type} is "perm":
1589 kick player due to "&c&lYou are banned for Permanent%nl%&f%{banned::%player%::reason}%%nl%&2Unfairly banned? Appeal at &a%{mineplex.config.appealwebsite}%"
1590 stop
1591 if {banned::%player%::type} is "temp":
1592 set {_waited} to difference between {banned::%player%::when} and now
1593 if {_waited} is less than {banned::%player%::time}:
1594 kick player due to "&c&lYou are banned for %{banned::%player%::time}%%nl%&f%{banned::%player%::reason}%%nl%&2Unfairly banned? Appeal at &a%{mineplex.config.appealwebsite}%"
1595
1596command /punish [<offline player>] [<text>]:
1597 aliases: /p
1598 permission: mineplex.trainee
1599 permission message: &9Permissions> &7This requires Permmission Rank [&9TRAINEE&7].
1600 trigger:
1601 if args 1 is not set:
1602 message "&9Punish> &7Command List:%nl%&6/punish &7<player> <reason> &6Mod"
1603 stop
1604 if args 1 is set:
1605 if args 2 is not set:
1606 message "&9Punish> &7Command List:%nl%&6/punish &7<player> <reason> &6Mod"
1607 stop
1608 if args 2 is set:
1609 if player has permission "mineplex.admin":
1610 open chest with 6 rows named " Punish" to player
1611 wait 2 ticks
1612 format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&7&lReason: &7%arg-2%" to be unstealable
1613 format slot 10 of player with book and quill named "&a&lChat Offense" with lore "&7Verbal Abuse, Spam, Harrassment, Trolling, etc" to be unstealable
1614 format slot 19 of player with cactus green named "&a&lSeverity 1" with lore "&fMute Duration: &e10.0 Hours||||&7Light Spam||&f Sending the same message 2-5 times||||&7Light Advertising||&f 'anyone want to play on minecade?'||||&7Light Abuse/Harassment||&f 'you suck at this game'||||&7Hackusations||&f 'you're such a hacker!'||||&7Trolling||||&2Give Warning if 0 Past Offences and 0 Warnings." to close then run [do [execute console command "/__mp__htempmute__ %arg-1% 10 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 10 hours"]]
1615 format slot 28 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fMute Duration: &e1.0 Days||||&7Medium Spam|| &fSending the same message 6-20 times||||&7Medium Advertising:|| &f'join crap.server.net' - posted once||||&7Medium Abuse/Harassment|| &f'piss off you stupid newb'|| &f'SHIT ADMINS ARE SHIT!!!'|| &f'you're terrible, learn to play'||||&7Avoiding Chat Filter|| &f'F|_|<K YOU'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% 1 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 1 day"]]
1616 format slot 37 of player with rose red named "&a&lSeverity 3" with lore "&fMute Duration: &e30.0 Days||||&7Severe Spam|| &fSending the same message 20+ times|| &fOnly really used for a spam bot||||&7Severe Abuse/Harassment|| &f'go fucking die in a fire you fucking sack of shit'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% 30 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 30 days"]]
1617 format slot 12 of player with hopper named "&a&lGeneral Offense" with lore "&7Command/Map/Class/Skill exploits, etc" to be unstealable
1618 format slot 21 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e4.0 Hours||||&7Team Killing||&f Intentionally killing your team mates||||&7Trolling (Gameplay)||&f Using abilities to trap players in spawn||||&7Map/Bug Exploiting||&f Abusing an exploit to gain an advantage" to close then run [do [execute console command "/__mp__htempban__ %arg-1% %player% 4 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 4 hours"]]
1619 format slot 14 of player with iron sword named "&a&lClient Mod" with lore "&7X-ray, Forcefield, Speed, Fly, Inventory Hacks, etc" to be unstealable
1620 format slot 23 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e1.0 Days||||&7Examples:||&f Damage Indicators||&f Player Radar" to close then run [do [execute console command "/__mp__tempban__ %arg-1% %player% 1 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 1 day"]]
1621 format slot 32 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack||||&7Hack Reports (SR & FR):|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack|| &fFly Hack" to close then run [do [execute console command "/__mp__tempban__ %arg-1% %player% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
1622 format slot 41 of player with rose red named "&a&lSeverity 3" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fFly Hack||||&c&lWARNING:||&cUse Severity 2 for Forum/Staff Reports" to close then run [do [execute console command "/__mp__tempban__ %arg-1% %player% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
1623 format slot 25 of player with paper named "&a&lWarning" with lore "||&7Example Warning Input:||&f Spam - Repeatedly writing MEOW||&f Swearing - Saying 'fuck' and 'shit'||&f Hack Accusation - Accused Tomp13 of hacking||&f Trolling - was trying to make bob angry in chat" to close then run [execute console command "/__mp__warn__ %arg-1% %player% %arg-2%"]
1624 format slot 34 of player with redstone block named "&a&lPermanent Ban" with lore "&fBan Duration: &ePermanent||||&2Must supply a detailed reason for Ban." to close then run [do [execute console command "/__mp__ban__ %arg-1% %player% %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% Permanent"]]
1625 format slot 43 of player with book and quill named "&a&lPermanent Mute" with lore "&fMute Duration: &ePermanent||||&7Severe Advertising:||&f 'JOIN MINECADE! THIS SUCKS!||&f 'join crap.server.net! FREE ADMIN!||||&2Must supply a detailed reason for Mute." to close then run [do [execute console command "/__mp__mute__ %arg-1% %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% Permanent"]]
1626 format slot 8 of player with shiny book and quill named "&a&lUnmute" with lore "&fUnmute Reason: &e%arg-2%" to close then run [do [execute console command "/__mp__iumm__ %player% %arg-1%"]->[execute console command "/__mp__unmute__ %arg-1%"]]
1627 format slot 7 of player with shiny redstone block named "&a&lUnban" with lore "&fUnban Reason: &e%arg-2%" to close then run [do [execute console command "/__mp__unban__ %arg-1%"]->[execute console command "/__mp__iubm__ %player% %arg-1%"]]
1628 if {banned::%arg-1%} is true:
1629 if {banned::%arg-1%::type} is "perm":
1630 format slot 45 of player with hopper named "&a&lCurrent Ban" with lore "&fBan Type: &ePermanent|| ||&fBan Reason: &e%{banned::%arg-1%::reason}%" to be unstealable
1631 else:
1632 format slot 45 of player with hopper block named "&a&lCurrent Ban" with lore "&fBan Type: &eTemporary||&fBan Length: &e%{banned::%arg-1%::time}%|| ||&fBan Reason: &e%{banned::%arg-1%::reason}%" to be unstealable
1633 if {muted::%arg-1%} is true:
1634 if {muted::%arg-1%::type} is "perm":
1635 format slot 46 of player with book and quill named "&a&lCurrent Mute" with lore "&fMute Type: &ePermanent|| ||&fMute Reason: &e%{muted::%arg-1%::reason}%||&fIssued By: &e%{muted::%arg-1%::by}%" to be unstealable
1636 else:
1637 format slot 46 of player with book and quill named "&a&lCurrent Mute" with lore "&fMute Type: &eTemporary||&fMute Length: &e%{muted::%arg-1%::time}%|| ||&fMute Reason: &e%{muted::%arg-1%::reason}%||&fIssued By: &e%{muted::%arg-1%::by}%" to be unstealable
1638 else if player has permission "mineplex.mod":
1639 open chest with 6 rows named " Punish" to player
1640 wait 2 ticks
1641 format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&7&lReason: &7%arg-2%" to be unstealable
1642 format slot 10 of player with book and quill named "&a&lChat Offense" with lore "&7Verbal Abuse, Spam, Harrassment, Trolling, etc" to be unstealable
1643 format slot 19 of player with cactus green named "&a&lSeverity 1" with lore "&fMute Duration: &e10.0 Hours||||&7Light Spam||&f Sending the same message 2-5 times||||&7Light Advertising||&f 'anyone want to play on minecade?'||||&7Light Abuse/Harassment||&f 'you suck at this game'||||&7Hackusations||&f 'you're such a hacker!'||||&7Trolling||||&2Give Warning if 0 Past Offences and 0 Warnings." to close then run [do [execute console command "/__mp__htempmute__ %arg-1% 10 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 10 hours"]]
1644 format slot 28 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fMute Duration: &e1.0 Days||||&7Medium Spam|| &fSending the same message 6-20 times||||&7Medium Advertising:|| &f'join crap.server.net' - posted once||||&7Medium Abuse/Harassment|| &f'piss off you stupid newb'|| &f'SHIT ADMINS ARE SHIT!!!'|| &f'you're terrible, learn to play'||||&7Avoiding Chat Filter|| &f'F|_|<K YOU'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% 1 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 1 day"]]
1645 format slot 37 of player with rose red named "&a&lSeverity 3" with lore "&fMute Duration: &e30.0 Days||||&7Severe Spam|| &fSending the same message 20+ times|| &fOnly really used for a spam bot||||&7Severe Abuse/Harassment|| &f'go fucking die in a fire you fucking sack of shit'" to close then run [do [execute console command "/__mp__tempmute__ %arg-1% %player% 30 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 30 days"]]
1646 format slot 12 of player with hopper named "&a&lGeneral Offense" with lore "&7Command/Map/Class/Skill exploits, etc" to be unstealable
1647 format slot 21 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e4.0 Hours||||&7Team Killing||&f Intentionally killing your team mates||||&7Trolling (Gameplay)||&f Using abilities to trap players in spawn||||&7Map/Bug Exploiting||&f Abusing an exploit to gain an advantage" to close then run [do [execute console command "/__mp__htempban__ %arg-1% %player% 4 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 4 hours"]]
1648 format slot 14 of player with iron sword named "&a&lClient Mod" with lore "&7X-ray, Forcefield, Speed, Fly, Inventory Hacks, etc" to be unstealable
1649 format slot 23 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e1.0 Days||||&7Examples:||&f Damage Indicators||&f Player Radar" to close then run [do [execute console command "/__mp__tempban__ %arg-1% %player% 1 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 1 day"]]
1650 format slot 32 of player with dandelion yellow named "&a&lSeverity 2" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack||||&7Hack Reports (SR & FR):|| &fForcefield|| &fSpeed Hack|| &fReach Hack|| &fSpeed Hack|| &fOther Hack|| &fFly Hack" to close then run [do [execute console command "/__mp__tempban__ %arg-1% %player% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
1651 format slot 41 of player with rose red named "&a&lSeverity 3" with lore "&fBan Duration: &e30.0 Days||||&7Hacks:|| &fFly Hack||||&c&lWARNING:||&cUse Severity 2 for Forum/Staff Reports" to close then run [do [execute console command "/__mp__tempban__ %arg-1% %player% 30 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 30 days"]]
1652 format slot 25 of player with paper named "&a&lWarning" with lore "||&7Example Warning Input:||&f Spam - Repeatedly writing MEOW||&f Swearing - Saying 'fuck' and 'shit'||&f Hack Accusation - Accused Tomp13 of hacking||&f Trolling - was trying to make bob angry in chat" to close then run [execute console command "/__mp__warn__ %arg-1% %player% %arg-2%"]
1653 format slot 34 of player with redstone block named "&a&lPermanent Ban" with lore "&fBan Duration: &ePermanent||||&2Must supply a detailed reason for Ban." to close then run [do [execute console command "/__mp__ban__ %arg-1% %player% %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% Permanent"]]
1654 format slot 43 of player with book and quill named "&a&lPermanent Mute" with lore "&fMute Duration: &ePermanent||||&7Severe Advertising:||&f 'JOIN MINECADE! THIS SUCKS!||&f 'join crap.server.net! FREE ADMIN!||||&2Must supply a detailed reason for Mute." to close then run [do [execute console command "/__mp__mute__ %arg-1% %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% Permanent"]]
1655 if {banned::%arg-1%} is true:
1656 if {banned::%arg-1%::type} is "perm":
1657 format slot 45 of player with hopper named "&a&lCurrent Ban" with lore "&fBan Type: &ePermanent|| ||&fBan Reason: &e%{banned::%arg-1%::reason}%" to be unstealable
1658 else:
1659 format slot 45 of player with hopper block named "&a&lCurrent Ban" with lore "&fBan Type: &eTemporary||&fBan Length: &e%{banned::%arg-1%::time}%|| ||&fBan Reason: &e%{banned::%arg-1%::reason}%" to be unstealable
1660 if {muted::%arg-1%} is true:
1661 if {muted::%arg-1%::type} is "perm":
1662 format slot 46 of player with book and quill named "&a&lCurrent Mute" with lore "&fMute Type: &ePermanent|| ||&fMute Reason: &e%{muted::%arg-1%::reason}%||&fIssued By: &e%{muted::%arg-1%::by}%" to be unstealable
1663 else:
1664 format slot 46 of player with book and quill named "&a&lCurrent Mute" with lore "&fMute Type: &eTemporary||&fMute Length: &e%{muted::%arg-1%::time}%|| ||&fMute Reason: &e%{muted::%arg-1%::reason}%||&fIssued By: &e%{muted::%arg-1%::by}%" to be unstealable
1665 else:
1666 open chest with 6 rows named " Punish" to player
1667 wait 2 ticks
1668 format slot 4 of player with arg-1's skull named "&a&l%arg-1%" with lore "&7&lReason: &7%arg-2%" to be unstealable
1669 format slot 10 of player with book and quill named "&a&lChat Offense" with lore "&7Verbal Abuse, Spam, Harrassment, Trolling, etc" to be unstealable
1670 format slot 19 of player with cactus green named "&a&lSeverity 1" with lore "&fMute Duration: &e10.0 Hours||||&7Light Spam||&f Sending the same message 2-5 times||||&7Light Advertising||&f 'anyone want to play on minecade?'||||&7Light Abuse/Harassment||&f 'you suck at this game'||||&7Hackusations||&f 'you're such a hacker!'||||&7Trolling||||&2Give Warning if 0 Past Offences and 0 Warnings." to close then run [do [execute console command "/__mp__htempmute__ %arg-1% 10 %player% %arg-2%"]->[execute console command "/__mp__imm__ %player% %arg-1% 10 hours"]]
1671 format slot 12 of player with hopper named "&a&lGeneral Offense" with lore "&7Command/Map/Class/Skill exploits, etc" to be unstealable
1672 format slot 21 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e4.0 Hours||||&7Team Killing||&f Intentionally killing your team mates||||&7Trolling (Gameplay)||&f Using abilities to trap players in spawn||||&7Map/Bug Exploiting||&f Abusing an exploit to gain an advantage" to close then run [do [execute console command "/__mp__htempban__ %arg-1% %player% 4 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 4 hours"]]
1673 format slot 14 of player with iron sword named "&a&lClient Mod" with lore "&7X-ray, Forcefield, Speed, Fly, Inventory Hacks, etc" to be unstealable
1674 format slot 23 of player with cactus green named "&a&lSeverity 1" with lore "&fBan Duration: &e1.0 Days||||&7Examples:||&f Damage Indicators||&f Player Radar" to close then run [do [execute console command "/__mp__tempban__ %arg-1% %player% 1 %arg-2%"]->[execute console command "/__mp__ibm__ %player% %arg-1% 1 day"]]
1675 format slot 25 of player with paper named "&a&lWarning" with lore "||&7Example Warning Input:||&f Spam - Repeatedly writing MEOW||&f Swearing - Saying 'fuck' and 'shit'||&f Hack Accusation - Accused Tomp13 of hacking||&f Trolling - was trying to make bob angry in chat" to close then run [execute console command "/__mp__warn__ %arg-1% %player% %arg-2%"]
1676
1677
1678command /__mp__warn__ <player> <player> <text>:
1679 trigger:
1680 if executor is player:
1681 stop
1682 else:
1683 if {mineplex.disguise.%arg-2%} is set:
1684 set {_p} to {mineplex.disguise.%arg-2%}
1685 else:
1686 set {_p} to arg-2
1687 send "&9Punish> &7%{_p}% issued a friendly warning to %arg-1%." to arg-1
1688 send "&9Punish> &7&lReason: &7%arg-3%" to arg-1
1689 loop all players:
1690 if loop-player has permission "mineplex.trainee":
1691 send "&9Punish> &7%{_p}% issued a friendly warning to %arg-1%." to loop-player
1692
1693command /__mp__ibm__ <text> <text> <text>:
1694 trigger:
1695 if executor is player:
1696 send "Unknown command. Type ""help"" for help."
1697 stop
1698 if {mineplex.disguise.%arg-1%} is set:
1699 set {_p} to {mineplex.disguise.%arg-1%}
1700 else:
1701 set {_p} to arg-1
1702 loop all players:
1703 if loop-player has permission "mineplex.trainee":
1704 send "&9Punish> &7%{_p}% banned %arg-2% for %arg-3%." to loop-player
1705
1706command /__mp__imm__ <text> <text> <text>:
1707 trigger:
1708 if executor is player:
1709 send "Unknown command. Type ""help"" for help."
1710 stop
1711 if {mineplex.disguise.%arg-1%} is set:
1712 set {_p} to {mineplex.disguise.%arg-1%}
1713 else:
1714 set {_p} to arg-1
1715 loop all players:
1716 if loop-player has permission "mineplex.trainee":
1717 send "&9Punish> &7%{_p}% muted %arg-2% for %arg-3%." to loop-player
1718
1719command /__mp__iubm__ <text> <text>:
1720 trigger:
1721 if executor is player:
1722 send "Unknown command. Type ""help"" for help."
1723 stop
1724 if {mineplex.disguise.%arg-1%} is set:
1725 set {_p} to {mineplex.disguise.%arg-1%}
1726 else:
1727 set {_p} to arg-1
1728 loop all players:
1729 if loop-player has permission "mineplex.trainee":
1730 send "&9Punish> &7%{_p}% unbanned %arg-2%." to loop-player
1731
1732command /__mp__iumm__ <text> <text>:
1733 trigger:
1734 if executor is player:
1735 send "Unknown command. Type ""help"" for help."
1736 stop
1737 if {mineplex.disguise.%arg-1%} is set:
1738 set {_p} to {mineplex.disguise.%arg-1%}
1739 else:
1740 set {_p} to arg-1
1741 loop all players:
1742 if loop-player has permission "mineplex.trainee":
1743 send "&9Punish> &7%{_p}% ummuted %arg-2%." to loop-player
1744
1745command /__mp__unban__ [<text>]:
1746 trigger:
1747 if executor is player:
1748 send "Unknown command. Type ""help"" for help."
1749 stop
1750 if arg 1 is not set:
1751 stop
1752 set {_player} to arg 1 parsed as offlineplayer
1753 delete {banned::%{_player}%}
1754 delete {banned::%{_player}%::*}
1755 message "&4* &cYou have unbanned %{_player}%"
1756
1757command /__mp__ban__ [<text>] [<text>] [<text>]:
1758 trigger:
1759 if executor is player:
1760 send "Unknown command. Type ""help"" for help."
1761 stop
1762 if player does not have permission "ban.people":
1763 message "&4* &cYou do not have permission to ban people."
1764 stop
1765 if arg 1 is not set:
1766 message "&4* &cUnspecified player. &7Try &f/ban [player] [reason]&7."
1767 stop
1768 if arg 2 is not set:
1769 message "&4* &cUnspecified time. &7Try &f/ban %arg 1% [reason]&7."
1770 stop
1771
1772 set {_player} to arg 1 parsed as offlineplayer
1773
1774 set {banned::%{_player}%} to true
1775 set {banned::%{_player}%::type} to "perm"
1776 set {banned::%{_player}%::reason} to arg 3
1777
1778 kick {_player} due to "&c&lYou are banned for Permanent by %arg-2%%nl%&f%{banned::%{_player}%::reason}%%nl%&2Unfairly banned? Appeal at &a%{mineplex.config.appealwebsite}%"
1779
1780
1781command /__mp__tempban__ [<text>] [<text>] [<text>] [<text>]:
1782 trigger:
1783 if executor is player:
1784 send "Unknown command. Type ""help"" for help."
1785 stop
1786 if player does not have permission "ban.people":
1787 message "&4* &cYou do not have permission to ban people."
1788 stop
1789 if arg 1 is not set:
1790 message "&4* &cUnspecified player. &7Try &f/tempban [player] [time] [reason]&7."
1791 stop
1792 if arg 2 is not set:
1793 message "&4* &cUnspecified time. &7Try &f/tempban %arg 1% [time] [reason]&7."
1794 stop
1795 if arg 3 is not set:
1796 message "&4* &cUnspecified reason. &7Try &f/tempban %arg 1% %arg 2% [reason]&7."
1797 stop
1798
1799 set {_player} to arg 1 parsed as offlineplayer
1800 set {_duration} to "%arg 3% days" parsed as timespan
1801
1802
1803
1804 set {banned::%{_player}%} to true
1805 set {banned::%{_player}%::type} to "temp"
1806 set {banned::%{_player}%::reason} to arg 4
1807 set {banned::%{_player}%::time} to {_duration}
1808 set {banned::%{_player}%::when} to now
1809
1810 kick {_player} due to "&c&lYou are banned for %{banned::%{_player}%::time}% by %arg-2%%nl%&f%{banned::%{_player}%::reason}%%nl%&2Unfairly banned? Appeal at &a%{mineplex.config.appealwebsite}%"
1811
1812command /__mp__htempban__ [<text>] [<text>] [<text>] [<text>]:
1813 trigger:
1814 if executor is player:
1815 send "Unknown command. Type ""help"" for help."
1816 stop
1817 if player does not have permission "ban.people":
1818 message "&4* &cYou do not have permission to ban people."
1819 stop
1820 if arg 1 is not set:
1821 message "&4* &cUnspecified player. &7Try &f/tempban [player] [time] [reason]&7."
1822 stop
1823 if arg 2 is not set:
1824 message "&4* &cUnspecified time. &7Try &f/tempban %arg 1% [time] [reason]&7."
1825 stop
1826 if arg 3 is not set:
1827 message "&4* &cUnspecified reason. &7Try &f/tempban %arg 1% %arg 2% [reason]&7."
1828 stop
1829
1830 set {_player} to arg 1 parsed as offlineplayer
1831 set {_duration} to "%arg 3% hours" parsed as timespan
1832
1833
1834
1835 set {banned::%{_player}%} to true
1836 set {banned::%{_player}%::type} to "temp"
1837 set {banned::%{_player}%::reason} to arg 4
1838 set {banned::%{_player}%::time} to {_duration}
1839 set {banned::%{_player}%::when} to now
1840
1841 kick {_player} due to "&c&lYou are banned for %{banned::%{_player}%::time}% by %arg-2%%nl%&f%{banned::%{_player}%::reason}%%nl%&2Unfairly banned? Appeal at &a%{mineplex.config.appealwebsite}%"
1842
1843command /__mp__tempmute__ [<text>] [<text>] [<text>] [<text>]:
1844 trigger:
1845 if executor is player:
1846 send "Unknown command. Type ""help"" for help."
1847 stop
1848 if player does not have permission "mute.people":
1849 stop
1850 if arg 1 is not set:
1851 stop
1852 if arg 2 is not set:
1853 stop
1854 if arg 3 is not set:
1855 stop
1856
1857 set {_player} to arg 1 parsed as offlineplayer
1858 set {_duration} to "%arg 2% days" parsed as timespan
1859
1860
1861
1862 set {muted::%{_player}%} to true
1863 set {muted::%{_player}%::type} to "temp"
1864 set {muted::%{_player}%::reason} to arg 4
1865 set {muted::%{_player}%::time} to {_duration}
1866 set {muted::%{_player}%::when} to now
1867 set {muted::%{_player}%::by} to arg 3
1868
1869 send "&9Punish> &7&lReason: &r&7%arg-4%" to {_player}
1870 send "&9Punish> &7%{muted::%{_player}%::by}% muted %arg-1% for %{muted::%{_player}%::time}%." to {_player}
1871
1872command /__mp__htempmute__ [<text>] [<text>] [<text>] [<text>]:
1873 trigger:
1874 if executor is player:
1875 send "Unknown command. Type ""help"" for help."
1876 stop
1877 if player does not have permission "mute.people":
1878 stop
1879 if arg 1 is not set:
1880 stop
1881 if arg 2 is not set:
1882 stop
1883 if arg 3 is not set:
1884 stop
1885
1886 set {_player} to arg 1 parsed as offlineplayer
1887 set {_duration} to "%arg 2% hours" parsed as timespan
1888
1889
1890
1891 set {muted::%{_player}%} to true
1892 set {muted::%{_player}%::type} to "temp"
1893 set {muted::%{_player}%::reason} to arg 4
1894 set {muted::%{_player}%::time} to {_duration}
1895 set {muted::%{_player}%::when} to now
1896 set {muted::%{_player}%::by} to arg 3
1897
1898 send "&9Punish> &7&lReason: &r&7%arg-4%" to {_player}
1899 send "&9Punish> &7%{muted::%{_player}%::by}% muted %arg-1% for %{muted::%{_player}%::time}%." to {_player}
1900
1901command /__mp__mute__ [<text>] [<text>] [<text>]:
1902 trigger:
1903 if executor is player:
1904 send "Unknown command. Type ""help"" for help."
1905 stop
1906 if player does not have permission "mute.people":
1907 stop
1908 if arg 1 is not set:
1909 stop
1910 if arg 2 is not set:
1911 stop
1912
1913 set {_player} to arg 1 parsed as offlineplayer
1914
1915 set {muted::%{_player}%} to true
1916 set {muted::%{_player}%::type} to "perm"
1917 set {muted::%{_player}%::reason} to arg 3
1918 set {muted::%{_player}%::by} to arg 2
1919
1920 send "&9Punish> &7&lReason: &r&7%arg-3%" to {_player}
1921 send "&9Punish> &7%{muted::%{_player}%::by}% muted %arg-1% for Permanent." to {_player}
1922
1923command /__mp__unmute__ [<text>]:
1924 trigger:
1925 if executor is player:
1926 send "Unknown command. Type ""help"" for help."
1927 stop
1928 if arg 1 is not set:
1929 stop
1930 set {_player} to arg 1 parsed as offlineplayer
1931 delete {muted::%{_player}%}
1932 delete {muted::%{_player}%::*}
1933 message "&4* &cYou have unbanned %{_player}%"
1934
1935#Prefs System
1936
1937command /prefs:
1938 trigger:
1939 set {_s} to "Steve" parsed as offline player
1940 open chest with 6 rows named " &nUser Preferences" to player
1941 wait 1 tick
1942 format slot 9 of player with fire charge named "&a&mHub Stacker" with lore "&7&mNull" to be unstealable
1943 format slot 18 of player with gray dye named "&a&mHub Stacker" with lore "&7&mNull" to be unstealable
1944 format slot 11 of player with eye of ender named "&aHub Player Visibility" with lore "&a%{mineplex.pref.hpv.%player%}%|| ||&fClick to Toggle" to close then run [execute player command "/.prefs-system 1"]
1945 format slot 20 of player with light green dye named "&aHub Player Visibility" with lore "&a%{mineplex.pref.hpv.%player%}%|| ||&fClick to Toggle" to close then run [execute player command "/.prefs-system 1"]
1946 format slot 13 of player with paper named "&aPlayer Chat" with lore "&a%{mineplex.pref.pc.%player%}%|| ||&fClick to Toggle" to close then run [execute player command "/.prefs-system 2"]
1947 format slot 22 of player with light green dye named "&aPlayer Chat" with lore "&a%{mineplex.pref.pc.%player%}%|| ||&fClick to Toggle" to close then run [execute player command "/.prefs-system 2"]
1948 format slot 15 of player with empty map named "&aPrivate Messaging" with lore "&a%{mineplex.pref.pm.%player%}%|| ||&fClick to Toggle" to close then run [execute player command "/.prefs-system 3"]
1949 format slot 24 of player with light green dye named "&aPrivate Messaging" with lore "&a%{mineplex.pref.pm.%player%}%|| ||&fClick to Toggle" to close then run [execute player command "/.prefs-system 3"]
1950 format slot 17 of player with player's skull named "&a&mHub Party Requests" with lore "&7&mNull" to be unstealable
1951 format slot 26 of player with gray dye named "&a&mHub Party Requests" with lore "&7&mNull" to be unstealable
1952 format slot 40 of player with red flower named "&a&mShow Pending Friend Requests" with lore "&7&mNull" to be unstealable
1953 format slot 49 of player with gray dye named "&a&mShow Pending Friend Requests" with lore "&7&mNull" to be unstealable
1954 if player has permission "mineplex.trainee":
1955 format slot 42 of player with paper named "&aGWEN Reports" with lore "&a%{mineplex.pref.gwen.%player%}%" to close then run [execute player command "/.prefs-system 4"]
1956 format slot 51 of player with gray dye named "&aGWEN Reports" with lore "&a%{mineplex.pref.gwen.%player%}%" to close then run [execute player command "/.prefs-system 4"]
1957
1958
1959command /.prefs-system [<integer>]:
1960 trigger:
1961 if arg 1 is 1:
1962 if {mineplex.pref.hpv.%player%} is true:
1963 set {mineplex.pref.hpv.%player%} to false
1964 hide all players from player
1965 else:
1966 set {mineplex.pref.hpv.%player%} to true
1967 reveal all players from player
1968 loop all players:
1969 if {mineplex.vanish.%loop-player%} is true:
1970 add loop-player to {%player%.vanishlist::*}
1971 loop all players:
1972 if loop-player does not have permission "mineplex.admin":
1973 hide {%player%.vanishlist::*} from all players
1974 delete {%player%.vanishlist::*}
1975 else if arg 1 is 2:
1976 if {mineplex.pref.pc.%player%} is true:
1977 set {mineplex.pref.pc.%player%} to false
1978 else:
1979 set {mineplex.pref.pc.%player%} to true
1980 else if arg 1 is 3:
1981 if {mineplex.pref.pm.%player%} is true:
1982 set {mineplex.pref.pm.%player%} to false
1983 else:
1984 set {mineplex.pref.pm.%player%} to true
1985 else if arg 1 is 4:
1986 if {mineplex.pref.gwen.%player%} is true:
1987 set {mineplex.pref.gwen.%player%} to false
1988 else:
1989 set {mineplex.pref.gwen.%player%} to true
1990
1991#GWEN CODING! (Using my old plugin Shield) (I took it down as I was ripping off json.sk but wtevr)
1992
1993on shoot:
1994 if {shield.toggle.fbow} is false:
1995 stop
1996 else:
1997 if projectile is an arrow:
1998 if difference between {bow.%shooter%} and now is less than 2 ticks:
1999 gwenAlert((shooter), ("Fast Bow"))
2000
2001on damage:
2002 if {shield.toggle.ff} is false:
2003 stop
2004 else:
2005 attacker is a player
2006 projectile doesn't exist
2007 if target of attacker is victim:
2008 stop
2009 cancel event
2010 add 1 to {forcefield.%attacker%}
2011 if {forcefield.%attacker%} > 5:
2012 gwenAlert((attacker), ("Forcefield"))
2013 clear {forcefield.%attacker%}
2014 wait 3 seconds
2015 reduce {forcefield.%attacker%} by 1
2016
2017every 4 second :
2018 set {autoclick.check} to true
2019 wait 3 second
2020 set {autoclick.check} to false
2021 loop all players :
2022 delete {player.click.%loop-player%}
2023
2024on left click :
2025 if {shield.toggle.ac} is false:
2026 stop
2027 else:
2028 {autoclick.check} is true
2029 add 1 to {player.click.%player%}
2030 {player.click.%player%} > 39
2031 gwenAlert((player), ("High CPS (%{player.click.%player%} / 3% cps)"))
2032
2033on damage of a player :
2034 if {shield.toggle.akb} is false:
2035 stop
2036 else:
2037 block at victim is not cobweb
2038 victim is not riding
2039 set {_loc9} to block north east victim
2040 set {_loc8} to block south west victim
2041 blocks within {_loc9} to {_loc8} is air
2042 set {_loc} to location of victim
2043 wait 10 ticks
2044 set {_loc2} to location of victim
2045 distance between {_loc} and {_loc2} = 0
2046 victim's ping < 250
2047 gwenAlert((victim), ("Velocity"))
2048
2049#Command Completers
2050
2051on tab completer for "/mineplex-core":
2052 add "help" to completions
2053 add "useChat" to completions
2054 add "setAdmin" to completions
2055 add "titleOnJoin" to completions
2056 add "reload" to completions
2057 add "useScoreboard" to completions
2058 add "%player%" to completions
2059
2060on tab completer for "/give":
2061 if player has permission "mineplex.admin":
2062 loop all items:
2063 add "%loop-value%" to completions
2064 loop all players:
2065 add "%loop-player%" to completions
2066 add "ALL" to completions
2067
2068#skPerms by LimeGlass
2069#Thanks for Letting Me Bake This In!
2070options:
2071 prefix: &6[&5SkPerms&6]
2072 maincolour: &6
2073 secondcolour: &7
2074 command: /permission
2075 aliases: /perm, /mpperm, /perms
2076 permission: mineplex.admin
2077
2078 #CMD protection is basically extra security for your server. Only players inside of a list variable can use SkPerms
2079 CMDprotection: false
2080 CMDprotectionMsg: Unknown command. Type ""/help"" for help
2081 #The player list is the list variable that contains players that can use SkPerms if CMDprotection is enabled
2082 PlayerList: {example::players::*}
2083
2084 UseChat: false #use prefix and suffix in the chat
2085 #Chat types:
2086 #Display - Changes the player's display name (Vault will hook if installed)
2087 #Override - !COMING SOON
2088 ChatType: "Display"
2089
2090 version: 1.0.3 #For SkPerms no Mineplex Core
2091
2092
2093on script load:
2094 set {skperms::config::version} to yaml value "version" from file "../../SkPerms/config.yml"
2095 if {skperms::config::version} is not set:
2096 set {_c} to true
2097 set yaml value "version" from file "../../SkPerms/config.yml" to "{@version}"
2098 set {skperms::config::useYML} to yaml value "useYML" from file "../../SkPerms/config.yml"
2099 if {skperms::config::useYML} is not set:
2100 set {_c} to true
2101 set yaml value "useYML" from file "../../SkPerms/config.yml" to false
2102 else if {skperms::config::useYML} is true:
2103 loop {skperms::players::*}:
2104 set {skperms::player::%loop-value%::permissions::*} to yaml nodes with keys "players.%loop-value%.permissions" from file "../../SkPerms/players.yml"
2105 if {skperms::player::%loop-value%::permissions::*} is not set:
2106 loop {skperms::player::%loop-value%::permissions::*}:
2107 add "%loop-value-2%" to yaml list "players.%loop-value-1%.permissions" from file "../../SkPerms/players.yml"
2108 if {_c} is true:
2109 execute console command "/sk reload SkPerms"
2110on script stop:
2111 loop {skperms::groups::*}:
2112 if {skperms::group::%loop-value%::*} is not set:
2113 loop {skperms::group::%loop-value-1%::permissions::*}:
2114 loop {skperms::players::*}:
2115 remove "%loop-value-2%" from {skperms::player::%loop-value-3%::permissions::*}
2116 loop {skperms::players::*}:
2117 remove "%loop-value-1%" from {skperms::player::%loop-value-2%::groups::*}
2118 if {skperms::player::%loop-value-2%::groups::*} is not empty:
2119 loop {skperms::player::%loop-value-2%::groups::*}:
2120 loop {skperms::group::%loop-value-1%::permissions::*}:
2121 set {_p} to "%loop-value-2%" parsed as player
2122 add "%loop-value-4%" to {_p}'s permissions
2123 remove "%loop-value%" from {skperms::groups::*}
2124command {@command} [<text>] [<text>] [<text>] [<text>] [<text>]:
2125 permission: {@permission}
2126 aliases: {@aliases}
2127 trigger:
2128 if {@CMDprotection} is true:
2129 if command sender is not console:
2130 if {@PlayerList} doesn't contain player or "%player%":
2131 message "{@CMDprotectionMsg}"
2132 stop
2133 if arg 1 is not set:
2134 message ""
2135 message "{@prefix} v{@version}:"
2136 message "{@maincolour}{@command} deleteDefault"
2137 message "{@secondcolour}Deletes default group setting (If set)"
2138 message "{@maincolour}{@command} (d|default) (group)"
2139 if {skperms::default} is set:
2140 message "{@secondcolour}Set the default group {@maincolour}(&7%{skperms::default}%{@maincolour})"
2141 else:
2142 message "{@secondcolour}Set the default group"
2143 message "{@maincolour}{@command} (p|player) (player) (add|remove|list) permission [permission]"
2144 message "{@secondcolour}Add/remove/list a players permissions"
2145 message "{@maincolour}{@command} (p|player) (player) (add|set|remove|list) group [group]"
2146 message "{@secondcolour}Add/remove/set/list a players group"
2147 message "{@maincolour}{@command} (g|group) (group) (add|remove|list) permission [permission]"
2148 message "{@secondcolour}Add/remove/list a group permission"
2149 message "{@maincolour}{@command} (g|group) (group) (add|remove|list) group [group]"
2150 message "{@secondcolour}Add/remove/list a groups connected groups"
2151 message "{@secondcolour}A group is created once it contains a permission"
2152 message "{@maincolour}{@command} (g|group) (group) (prefix|suffix) set (text)"
2153 message "{@secondcolour}Set a suffix or prefix to a group"
2154 message ""
2155 else if arg 1 is "deleteDefault":
2156 delete {skperms::default}
2157 message "{@prefix} {@maincolour}Removed default group (No group set)"
2158 else if arg 1 is "d", "setdefault" or "default":
2159 if arg 2 is set:
2160 set {skperms::default} to "%arg 2%"
2161 message "{@prefix} {@maincolour}Set default group to &l%arg 2%"
2162 else:
2163 message "{@prefix} {@maincolour}Error: Group not specified"
2164 else if arg 1 is "p" or "player":
2165 if arg 2 is not set:
2166 message "{@prefix} {@maincolour}Error: Player not specified"
2167 else if arg 2 is set:
2168 if arg 3 is "a" or "add":
2169 if arg 4 is "p", "permission" or "permissions":
2170 if arg 5 is set:
2171 if {skperms::groups::*} doesn't contain "%arg 2%":
2172 add "%arg 2%" to {skperms::groups::*}
2173 set {_player} to arg 2 parsed as player
2174 add "%arg 5%" to {_player}'s permissions
2175 set {skperms::player::%arg 2%::permissions::*} to {_player}'s permissions
2176 message "{@prefix} {@maincolour}Added %arg 5% to %arg 2%'s permissions"
2177 else:
2178 message "{@prefix} {@maincolour}Error: Permission not specified"
2179 else if arg 4 is "g", "group" or "groups":
2180 if arg 5 is set:
2181 if {skperms::groups::*} doesn't contain "%arg 2%":
2182 add "%arg 2%" to {skperms::groups::*}
2183 if {skperms::player::%arg 2%::groups::*} doesn't contain "%arg 5%":
2184 add "%arg 5%" to {skperms::player::%arg 2%::groups::*}
2185 else:
2186 message "{@prefix} {@secondcolour}%arg 2% already has group %arg 5%"
2187 stop
2188 message "{@prefix} {@maincolour}Added %arg 2% to group %arg 5%"
2189 if {@UseChat} is true:
2190 if {@ChatType} is "Display" or "display":
2191 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
2192 if {skperms::group::%arg 5%::prefix} is set:
2193 if {skperms::group::%arg 5%::suffix} is set:
2194 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
2195 else:
2196 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
2197 else if {skperms::group::%arg 5%::suffix} is set:
2198 set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
2199 else:
2200 set loop-player's display name to "%player%"
2201 loop all players where [{skperms::player::%player%::groups::*} is not set]:
2202 set loop-player's display name to "%player%"
2203 else:
2204 message "{@prefix} {@maincolour}Error: Group not specified"
2205 else:
2206 message "{@prefix} {@maincolour}Error: Type not specified"
2207 else if arg 3 is "s" or "set":
2208 if arg 4 is "g", "group" or "groups":
2209 if arg 5 is set:
2210 if {skperms::groups::*} doesn't contain "%arg 2%":
2211 add "%arg 2%" to {skperms::groups::*}
2212 delete {skperms::player::%arg 2%::groups::*}
2213 add "%arg 5%" to {skperms::player::%arg 2%::groups::*}
2214 message "{@prefix} {@maincolour}Set %arg 2% to group %arg 5%"
2215 if {@UseChat} is true:
2216 if {@ChatType} is "Display" or "display":
2217 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
2218 if {skperms::group::%arg 5%::prefix} is set:
2219 if {skperms::group::%arg 5%::suffix} is set:
2220 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
2221 else:
2222 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
2223 else if {skperms::group::%arg 5%::suffix} is set:
2224 set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
2225 else:
2226 set loop-player's display name to "%player%"
2227 loop all players where [{skperms::player::%player%::groups::*} is not set]:
2228 set loop-player's display name to "%player%"
2229 else:
2230 message "{@prefix} {@maincolour}Error: Group not specified"
2231 else:
2232 message "{@prefix} {@maincolour}Error: Type not specified"
2233 else if arg 3 is "r" or "remove":
2234 if arg 4 is "p", "permission" or "permissions":
2235 if arg 5 is set:
2236 set {_player} to arg 2 parsed as player
2237 remove "%arg 5%" from {_player}'s permissions
2238 set {skperms::player::%arg 2%::permissions::*} to {_player}'s permissions
2239 message "{@prefix} {@maincolour}Removed %arg 5% from %arg 2%'s permissions"
2240 else:
2241 message "{@prefix} {@maincolour}Error: Permission not specified"
2242 else if arg 4 is "g", "group" or "groups":
2243 if arg 5 is set:
2244 if {skperms::player::%arg 2%::groups::*} contains "%arg 5%":
2245 remove "%arg 5%" from {skperms::player::%arg 2%::groups::*}
2246 message "{@prefix} {@maincolour}Removed %arg 2% from group %arg 5%"
2247 if {@UseChat} is true:
2248 if {@ChatType} is "Display" or "display":
2249 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
2250 if {skperms::group::%arg 5%::prefix} is set:
2251 if {skperms::group::%arg 5%::suffix} is set:
2252 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
2253 else:
2254 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
2255 else if {skperms::group::%arg 5%::suffix} is set:
2256 set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
2257 else:
2258 set loop-player's display name to "%player%"
2259 loop all players where [{skperms::player::%player%::groups::*} is not set]:
2260 set loop-player's display name to "%player%"
2261 else:
2262 message "{@prefix} {@maincolour}Error: Player %arg 2% doesn't have that group"
2263 else:
2264 message "{@prefix} {@maincolour}Error: Group not specified"
2265 else:
2266 message "{@prefix} {@maincolour}Error: Type not specified"
2267 else if arg 3 is "l" or "list":
2268 if arg 4 is "p", "permission" or "permissions":
2269 set {_player} to arg 2 parsed as player
2270 message "{@prefix} {@maincolour}%{_player}'s permissions%"
2271 else if arg 4 is "g", "group" or "groups":
2272 message "{@prefix} {@maincolour}%{skperms::player::%arg 2%::groups::*}%"
2273 else:
2274 message "{@prefix} {@maincolour}Error: Type not specified"
2275 else if arg 1 is "g", "group" or "groups":
2276 if arg 2 is not set:
2277 message "{@prefix} {@maincolour}Error: Group not specified"
2278 else if arg 2 is set:
2279 if arg 3 is "a" or "add":
2280 if arg 4 is "p", "permission" or "permissions":
2281 if arg 5 is set:
2282 if {skperms::groups::*} doesn't contain "%arg 2%":
2283 add "%arg 2%" to {skperms::groups::*}
2284 add "%arg 5%" to {skperms::group::%arg 2%::permissions::*}
2285 message "{@prefix} {@maincolour}Added %arg 5% to group %arg 2%'s permissions"
2286 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
2287 loop {skperms::group::%arg 2%::permissions::*}:
2288 add "%loop-value-2%" to loop-player's permissions
2289 else:
2290 message "{@prefix} {@maincolour}Error: Permission not specified"
2291 else if arg 4 is "g", "group" or "groups":
2292 if arg 5 is set:
2293 if {skperms::groups::*} doesn't contain "%arg 2%":
2294 add "%arg 2%" to {skperms::groups::*}
2295 loop {skperms::group::%arg 5%::permissions::*}:
2296 add "%loop-value%" to {skperms::group::%arg 2%::permissions::*}
2297 message "{@prefix} {@maincolour}Added %arg 5%'s permissions to group %arg 2%"
2298 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
2299 loop {skperms::group::%arg 2%::permissions::*}:
2300 add "%loop-value-2%" to loop-player's permissions
2301 else:
2302 message "{@prefix} {@maincolour}Error: Group not specified"
2303 else:
2304 message "{@prefix} {@maincolour}Error: Type not specified"
2305 else if arg 3 is "r" or "remove":
2306 if arg 4 is "p", "permission" or "permissions":
2307 if arg 5 is set:
2308 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
2309 loop {skperms::group::%arg 2%::permissions::*}:
2310 remove "%loop-value-2%" from loop-player's permissions
2311 remove "%arg 5%" from {skperms::group::%arg 2%::permissions::*}
2312 message "{@prefix} {@maincolour}Removed %arg 5% from group %arg 2%'s permissions"
2313 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
2314 loop {skperms::group::%arg 2%::permissions::*}:
2315 add "%loop-value-2%" to loop-player's permissions
2316 else:
2317 message "{@prefix} {@maincolour}Error: Permission not specified"
2318 else if arg 4 is "g", "group" or "groups":
2319 if arg 5 is set:
2320 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
2321 loop {skperms::group::%arg 2%::permissions::*}:
2322 remove "%loop-value-2%" from loop-player's permissions
2323 loop {skperms::group::%arg 5%::permissions::*}:
2324 remove "%loop-value%" from {skperms::group::%arg 2%::permissions::*}
2325 add 1 to {_l}
2326 message "{@prefix} {@maincolour}Removed %{_l}% of %arg 5%'s permissions from group %arg 2%"
2327 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 2%"]:
2328 loop {skperms::group::%arg 2%::permissions::*}:
2329 add "%loop-value-2%" to loop-player's permissions
2330 else:
2331 message "{@prefix} {@maincolour}Error: Group not specified"
2332 else:
2333 message "{@prefix} {@maincolour}Error: Type not specified"
2334 else if arg 3 is "l" or "list":
2335 if arg 4 is "p", "permission" or "permissions":
2336 message "{@prefix} {@maincolour}%{skperms::group::%arg 2%::permissions::*}%"
2337 else:
2338 message "{@prefix} {@maincolour}Error: Type not specified"
2339 else if arg 3 is "prefix" or "suffix":
2340 if arg 4 is "set":
2341 if arg 5 is set:
2342 set {skperms::group::%arg 2%::%arg 3%} to "%arg 5%"
2343 message "{@prefix} {@maincolour}%arg 3% set to %arg 5%"
2344 if {@UseChat} is true:
2345 if {@ChatType} is "Display" or "display":
2346 loop all players where [{skperms::player::%player%::groups::*} contains "%arg 5%"]:
2347 if {skperms::group::%arg 5%::prefix} is set:
2348 if {skperms::group::%arg 5%::suffix} is set:
2349 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%%{skperms::group::%arg 5%::suffix}%"
2350 else:
2351 set loop-player's display name to coloured "%{skperms::group::%arg 5%::prefix}%%loop-player%"
2352 else if {skperms::group::%arg 5%::suffix} is set:
2353 set loop-player's display name to coloured "%loop-player%%{skperms::group::%arg 5%::suffix}%"
2354 else:
2355 set loop-player's display name to "%player%"
2356 loop all players where [{skperms::player::%player%::groups::*} is not set]:
2357 set loop-player's display name to "%player%"
2358 else:
2359 message "{@prefix} {@maincolour}Prefix/Suffix not specified"
2360 else:
2361 message "{@prefix} {@maincolour}Error: Type not specified (Type ""set"")"
2362on quit:
2363 set {skperms::player::%player%::permissions::*} to player's permissions
2364on join:
2365 loop 2 times:
2366 remove "%player%" from {skperms::players::*}
2367 add "%player%" to {skperms::players::*}
2368 loop {skperms::groups::*}:
2369 if player has permission "skperms.group.%loop-value%":
2370 if {skperms::player::%player%::groups::*} doesn't contain "%loop-value%":
2371 add "%loop-value%" to {skperms::player::%player%::groups::*}
2372 if {skperms::default} is set:
2373 loop {skperms::group::%{skperms::default}%::permissions::*}:
2374 add "%loop-value%" to player's permissions
2375 loop {skperms::player::%player%::permissions::*}:
2376 add "%loop-value%" to player's permissions
2377 if {skperms::player::%player%::groups::*} is not empty:
2378 loop {skperms::player::%player%::groups::*}:
2379 loop {skperms::group::%loop-value%::permissions::*}:
2380 add "%loop-value-2%" to player's permissions
2381 if {@UseChat} is true:
2382 if {@ChatType} is "Display" or "display":
2383 if {skperms::group::%loop-index%::prefix} is set:
2384 if {skperms::group::%loop-index%::suffix} is set:
2385 set player's display name to coloured "%{skperms::group::%loop-index%::prefix}%%player%%{skperms::group::%loop-index%::suffix}%"
2386 else:
2387 set player's display name to coloured "%{skperms::group::%loop-index%::prefix}%%player%"
2388 else if {skperms::group::%loop-index%::suffix} is set:
2389 set player's display name to coloured "%player%%{skperms::group::%loop-index%::suffix}%"
2390 else:
2391 set player's display name to "%player%"
2392 loop all players where [{skperms::player::%player%::groups::*} is not set]:
2393 set loop-player's display name to "%player%"