-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMineplex-v1-9.sk
2393 lines (2268 loc) · 112 KB
/
Mineplex-v1-9.sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#(Old ugly acci text here)
#
#Mineplex Core Remake
#The best and only Mineplex Copy
#by Josh Roy (WheezyGold7931)
#Enjoy!
script options:
$ use permissions
#Do not change these unless you want all hell to brake loose!
options:
MCRVER: 1.9
configver: granite
#Functions
function configRefresh(n: number) :: number:
set {mineplex.config.config} to value "config" get of "plugins/Mineplex-Core-Remake/config.yml"
set {mineplex.config.servername} to value "servername" get of "plugins/Mineplex-Core-Remake/config.yml"
set {mineplex.config.website} to value "website" get of "plugins/Mineplex-Core-Remake/config.yml"
set {mineplex.config.appealwebsite} to value "appealwebsite" get of "plugins/Mineplex-Core-Remake/config.yml"
function configPopulate(n: number) :: number:
create file "plugins/Mineplex-Core-Remake/config.yml"
set "config" to "{@configver}" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
set "servername" to "MINEPLEX" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
set "website" to "www.mineplex.com" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
set "appealwebsite" to "www.mineplex.com/appeals" in yaml file "plugins/Mineplex-Core-Remake/config.yml"
function updateRankAPI(p: player) :: player:
wait 5 ticks
if {mineplex.disguise.%{_p}%} is set:
set {_br} to uncolored {mineplex.rank.%{_p}%}
set {_dr} to uncolored {mineplex.rank.%{mineplex.disguise.%{_p}%}%}
replace all " " in {_br} with ""
replace all " " in {_dr} with ""
if {_dr} is "":
set {_dr} to "No Rank"
set {mineplex.api.displayrank.%{_p}%} to "%{_dr}% (%{_br}%)"
set {mineplex.api.displayname.%{_p}%} to "%{mineplex.disguise.%{_p}%}%"
else:
set {_br} to uncolored {mineplex.rank.%{_p}%}
set {mineplex.api.displayrank.%{_p}%} to "%{_br}%"
set {mineplex.api.displayname.%{_p}%} to "%{_p}%"
function mcs(p: player , m: text) :: number:
if {mineplex.overidechat} is true:
if {mineplex.disguise.%{_p}%} is set:
set {_player} to {mineplex.disguise.%{_p}%}
else:
set {_player} to {_p}
if {mineplex.rank.%{_player}%} is not set:
set {mineplex.rank.%{_player}%} to ""
if {mineplex.level.%{_player}%} is not set:
set {mineplex.level.%{_player}%} to "&70"
replace all " fuck ", " bitch " and " ass " with "****" in {_m}
if {_m} is {mineplex.lastsent.%{_p}%}:
send "&9Chat> &7This message is too similar to your previous message." to {_p}
return -1
stop
set {mineplex.lastsent.%{_p}%} to {_m}
loop all players:
if {mineplex.pref.pc.%loop-player%} is true:
send "%{mineplex.level.%{_player}%}% %{mineplex.rank.%{_player}%}%&e%{_player}% &f%{_m}%" to loop-player
return -1
else:
stop
function gwenAlert(p: player , r: text) :: number:
if {mineplex.disguise.%{_p}%} is set:
set {_player} to {mineplex.disguise.%{_p}%}
else:
set {_player} to {_p}
loop all players:
if loop-player has permission "mineplex.trainee":
if {mineplex.pref.gwen.%loop-player%} is true:
send "&b&kK&r &c&lGWEN > &6%{_player}% &esuspected of &a%{_r}%&e." to loop-player
#Config Loading
on load:
if file "plugins/Mineplex-Core-Remake/config.yml" doesn't exists:
configPopulate(1)
# set {mineplex.config.servername} to colored value "servername" get of "plugins/Mineplex-Core-Remake/config.yml"
configRefresh(1)
wait 1 second
if {mineplex.config.config} is "{@configver}":
broadcast "&9Mineplex Core> &7Your Config is up to Date!"
else:
broadcast "&9Mineplex Core> &7Your Config is not up to Date! Updateing this shit for you!"
configPopulate(1)
broadcast "&9Mineplex Core> &7Config Re-Populated!"
broadcast "&9Mineplex Core> &7Going to reload plugin now!"
wait 1 second
execute console command "/sk reload all"
if {mineplex.usescoreboard} is not set:
set {mineplex.usescoreboard} to true
#Main Command/Toggles
command /mineplex-core <string> [<string>]:
usage: &9Do /mineplex-core help
permission: op
permission message: &9Permissions> &7This requires Permmission Rank [&9OP&7].
trigger:
if argument 1 is "help":
send "&9Plugin> &7Mineplex Core"
send "&9Plugin> &7Running MCR: &e{@MCRVER}"
send "&9Plugin> &7by WheezyGold7931, LimeGlass, Citrin_, and HappyLuigit"
send ""
send "&9Mineplex Core> &7Listing Mineplex Core Options:"
send "&f/mineplex-core useChat (true/false): &eToggles this plugin to take overide the chat to mineplex's format."
send "&f/mineplex-core setAdmin (Player): &eGives the selected player admin perms (For all mineplex commands)"
send "&f/mineplex-core titleOnJoin (true/false): &eToggles if players will see news on join!"
send "&f/mineplex-core useScoreboard (true/false) 7eToggles if you want to use Mineplex Core's Scoreboard"
send "&f/mineplex-core reload : &eReloads the config for Mineplex Core!"
else if argument 1 is "useChat":
if argument 2 is "true":
set {mineplex.overidechat} to true
send "&9Chat> &7Now using Mineplex Chat System (MCS)."
else:
set {mineplex.overidechat} to false
send "&9Chat> &7Now using Default Chat System (DCS)."
else if argument 1 is "titleOnJoin":
if argument 2 is "true":
set {mineplex.news.allow} to true
send "&9News> &7Now broadcasting titles on join!"
else:
set {mineplex.news.allow} to false
send "&9News> &7No longer broadcasting titles on join!"
else if argument 1 is "setAdmin":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&4&lADMIN "
set {_mineplex.setadmin.temp} to "%arg-2%" parsed as player
execute console command "/__mp__dp__ %arg-2%"
add "mineplex.trainee" to {_mineplex.setadmin.temp}'s permissions
add "mineplex.legend" to {_mineplex.setadmin.temp}'s permissions
add "mineplex.mod" to {_mineplex.setadmin.temp}'s permissions
add "mineplex.builder" to {_mineplex.setadmin.temp}'s permissions
add "mineplex.srmod" to {_mineplex.setadmin.temp}'s permissions
add "mineplex.admin" to {_mineplex.setadmin.temp}'s permissions
updateRankAPI({_mineplex.setadmin.temp})
send "&9Ranks> &7Set %arg-2%'s rank to Admin"
else if argument 1 is "reload":
configRefresh(1)
send "&9Mineplex Core> &7Config Refreshed!"
else if argument 1 is "useScoreboard":
if argument 2 is set:
if argument 2 is "true":
set {mineplex.usescoreboard} to true
send "&9Mineplex Core> &7Scoreboard Enabled!"
else:
set {mineplex.usescoreboard} to false
send "&9Mineplex Core> &7Scoreboard Disabled!"
loop all players:
wipe loop-player's sidebar
#Scoreboard
every 2 seconds:
if {mineplex.usescoreboard} is false:
stop
else:
loop all players:
wipe loop-player's sidebar
set name of sidebar of loop-player to "&6&l%{mineplex.config.servername}%"
set score "&b&lServer" in sidebar of loop-player to 15
set score "&f%loop-player's world%" in sidebar of loop-player to 14
set score "&1 " in sidebar of loop-player to 13
set score "&a&lGems" in sidebar of loop-player to 12
set score "&f%{mineplex.gems.%loop-player%}%" in sidebar of loop-player to 11
set score "&2 " in sidebar of loop-player to 10
set score "&e&lShards" in sidebar of loop-player to 9
set score "&f%{mineplex.shards.%loop-player%}%" in sidebar of loop-player to 8
set score "&3 " in sidebar of loop-player to 7
set score "&6&lRank" in sidebar of loop-player to 6
set score "&f%{mineplex.api.displayrank.%loop-player%}%" in sidebar of loop-player to 5
set score "&4 " in sidebar of loop-player to 4
set score "&c&lWebsite" in sidebar of loop-player to 3
set score "&f%{mineplex.config.website}%" in sidebar of loop-player to 2
set score "&f----------------" in sidebar of loop-player to 1
#Rank Loader
on join:
if {mineplex.testrank.%player%} is set:
set {mineplex.rank.%player%} to {mineplex.testrank.%player%}
delete {mineplex.testrank.%player%}
if {mineplex.rank.%player%} is "&b&lULTRA ":
execute console command "/updaterank %player% ultra"
set player tab name to "&b&lULTRA &e%player%"
if {mineplex.rank,%player%} is "&d&lHERO ":
execute console command "/updaterank %player% hero"
set player tab name to "&d&lHERO &e%player%"
if {mineplex.rank.%player%} is "&a&lLEGEND ":
execute console command "/updaterank %player% legend"
set player tab name to "&a&lLEGEND &e%player%"
if {mineplex.rank.%player%} is "&c&lTITAN ":
execute console command "/updaterank %player% titan"
set player tab name to "&c&lTITAN &e%player%"
if {mineplex.rank.%player%} is "&6&lTRAINEE ":
execute console command "/updaterank %player% trainee"
set player tab name to "&6&lTRAINEE &e%player%"
if {mineplex.rank.%player%} is "&6&lMOD ":
execute console command "/updaterank %player% mod"
set player tab name to "&6&lMOD &e%player%"
if {mineplex.rank.%player%} is "&6&lSR.MOD ":
execute console command "/updaterank %player% srmod"
set player tab name to "&6&lSR.MOD &e%player%"
if {mineplex.rank.%player%} is "&6&lC.MOD ":
execute console command "/updaterank %player% cmod"
set player tab name to "&6&lC.MOD &e%player%"
if {mineplex.rank.%player%} is "&4&lADMIN ":
execute console command "/updaterank %player% admin"
set player tab name to "&4&lADMIN &e%player%"
if {mineplex.rank.%player%} is "&4&lLEADER ":
execute console command "/updaterank %player% leader"
set player tab name to "&4&lLEADER &e%player%"
if {mineplex.rank.%player%} is "&4&lOWNER ":
execute console command "/updaterank %player% owner"
set player tab name to "&4&lOWNER &e%player%"
if {mineplex.rank.%player%} is "&9&lBUILDER ":
execute console command "/updaterank %player% builder"
set player tab name to "&9&lBUIDLER &e%player%"
if {mineplex.rank.%player%} is "&9&lMAPLEAD ":
execute console command "/updaterank %player% maplead"
set player tab name to "&9&lMAPLEAD &e%player%"
if {mineplex.rank.%player%} is "&c&lJR.DEV ":
execute console command "/updaterank %player% jrdev"
if {mineplex.rank.%player%} is "&4&lDEV ":
execute console command "/updaterank %player% dev"
set player tab name to "&4&lDEV &e%player%"
if {mineplex.rank.%player%} is "&5&lTWITCH ":
execute console command "/updaterank %player% twitch"
set player tab name to "&5&lTWITCH &e%player%"
if {mineplex.rank.%player%} is "&c&lYOUTUBE ":
execute console command "/updaterank %player% youtube"
set player tab name to "&c&lYOUTUBE &e%player%"
if {mineplex.rank.%player%} is "&5&lYT ":
execute console command "/updaterank %player% yt"
set player tab name to "&5&lYT &e%player%"
if {mineplex.rank.%player%} is "&3&lETERNAL ":
execute console command "/updaterank %player% eternal"
set player tab name to "&3&lETERNAL &e%player%"
if {mineplex.rank.%player%} is "&1&lSUPPORT ":
execute console command "/updaterank %player% support"
if {mineplex.rank.%player%} is "&1&lMEDIA ":
execute console command "/updaterank %player% media"
#Chat System
on chat:
if {muted::%player%} is true:
if {muted::%player%::type} is "perm":
send "&9Punish> &7Shh, you're muted because %{muted::%player%::reason}% by %{muted::%player%::by}% for Permanent."
cancel event
stop
if {muted::%player%::type} is "temp":
set {_waited} to difference between {muted::%player%::when} and now
if {_waited} is less than {muted::%player%::time}:
send "&9Punish> &7Shh, you're muted because %{muted::%player%::reason}% by %{muted::%player%::by}% for &a%{muted::%player%::time}%."
cancel event
stop
if {mineplex.vanish.%player%} is false:
if {mineplex.chatslow} is set:
if player has permission "mineplex.mod":
set {_check} to mcs((player), (message))
if {_check} is less than 0:
cancel event
delete {_check}
else:
if difference between {lastChat::%player%} and now < {mineplex.chatslow}:
cancel event
send "&9Chat> &7Chat slow enabled. Please wait."
else:
set {lastChat::%player%} to now
set {_check} to mcs((player), (message))
if {_check} is less than 0:
cancel event
delete {_check}
else if {mineplex.chatsilence} is set:
if player has permission "mineplex.trainee":
set {_check} to mcs((player), (message))
if {_check} is less than 0:
cancel event
delete {_check}
else:
cancel event
send "&9Chat> &7The chat is silenced."
else:
if {party.%player%.chat} is true:
if length of message is greater than 1:
if first character of message is "@":
cancel event
set message to "%subtext of message from characters 2 to (length of message)%"
loop {party.%{party.%player%}%::*}:
message "&5&lParty &f&l%player% &d%message%" to loop-value
else:
set {_check} to mcs((player), (message))
if {_check} is less than 0:
cancel event
delete {_check}
else:
set {_check} to mcs((player), (message))
if {_check} is less than 0:
cancel event
delete {_check}
else:
set {_check} to mcs((player), (message))
if {_check} is less than 0:
cancel event
delete {_check}
else if {mineplex.vanish.%player%} is true:
send "&eYou can not chat while incognito."
cancel event
else:
set {mineplex.vanish.%player%} to false
set {_check} to mcs((player), (message))
if {_check} is less than 0:
cancel event
delete {_check}
#Join, Quit, and Load Handlers
on join:
if player has permission "mineplex.admin":
wait 5 seconds
#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
set {_var::*} to contents from url "http://pastebin.com/raw/LG11nc8b"
loop {_var::*}:
if loop-value is not "{@MCRVER}":
send "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download" to player
else:
stop
send "&9Mineplex Core> &7Changelog:" to player
set {_var1::*} to contents from url "http://pastebin.com/raw/YDB8kU1v"
loop {_var1::*}:
send "%loop-value%" to player
loop {_var::*}:
send "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download" to player
send "&9Mineplex Core> &7End of Changelog!"
on load:
#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
set {_var::*} to contents from url "http://pastebin.com/raw/LG11nc8b"
loop {_var::*}:
if loop-value is not "{@MCRVER}":
broadcast "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download"
else:
stop
broadcast "&9Mineplex Core> &7Changelog:"
set {_var1::*} to contents from url "http://pastebin.com/raw/YDB8kU1v"
loop {_var1::*}:
broadcast "%loop-value%"
loop {_var::*}:
broadcast "&9Mineplex Core> &7Version &e%loop-value% &7is ready for download"
broadcast "&9Mineplex Core> &7End of Changelog!"
if {mineplex.gadget.enabled} is not set:
set {mineplex.gadget.enabled} to true
on join:
set join message to "&8Join> &7%player%"
updateRankAPI(player)
delete {mineplex.disguise.%player%}
execute console command "/ud %player%"
if {mineplex.level.%player%} is not set:
set {mineplex.level.%player%} to "&70"
delete {mineplex.lastm.%player%}
wait 1.5 seconds
if {mineplex.rank.%player%} is not set:
set {mineplex.rank.%player%} to ""
execute console command "/__mp__dp__ %player%"
if {mineplex.vanish.%player%} is not set:
set {mineplex.vanish.%player%} to false
if {mineplex.overidechat} is not set:
set {mineplex.overidechat} to true
if {indev} is not set:
set {indev} to true
if {mineplex.vanish.%player%} is true:
send ""
send ""
send "&6&lYou are currently incognito"
send "&eThis means you are invisible to all excepet for those who are"
send "&4Admin&6+"
send ""
send ""
execute player command "/__mp__st__"
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
if {mineplex.pref.hpv.%player%} is false:
hide all players from player
if {mineplex.pref.hpv.%player%} is not set:
set {mineplex.pref.hpv.%player%} to true
if {mineplex.pref.pm.%player%} is not set:
set {mineplex.pref.pm.%player%} to true
if {mineplex.pref.pc.%player%} is not set:
set {mineplex.pref.pc.%player%} to true
if {mineplex.pref.gwen.%player%} is not set:
set {mineplex.pref.gwen.%player%} to true
if {mineplex.shards.%player%} is not set:
set {mineplex.shards.%player%} to 0
if {mineplex.gems.%player%} is not set:
set {mineplex.gems.%player%} to 0
if {mineplex.particle.active.%player%} is not set:
set {mineplex.particle.active.%player%} to false
if {mineplex.arrorw.active} is not set:
set {mineplex.arrow.active} to false
if {mineplex.adminmode.%player%} is true:
set {mineplex.adminmode.%player%} to false
loop all players:
if {mineplex.vanish.%loop-player%} is true:
add loop-player to {%player%.vanishlist::*}
loop all players:
if loop-player does not have permission "mineplex.admin":
hide {%player%.vanishlist::*} from all players
delete {%player%.vanishlist::*}
on load:
if {mineplex.news.int} is not set:
set {mineplex.news.line1} to "§b§lMineplex Core Remake"
set {mineplex.news.line2} to "§a§lThe best remake for Mineplex Commands"
set {mineplex.news.line3} to "§3§lRate this on Spigot!"
set {mineplex.news.line4} to "§c§lCheck me out on SkUnity!"
set {mineplex.news.allow} to true
set {mineplex.news.int} to true
wait 5 seconds
on quit:
set quit message to "&8Quit> &7%player%"
#Mineplex Commands
command /disguise [<string>] [<string>]:
permission: mineplex.admin
permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
trigger:
if arg 1 is not set:
if {mineplex.disguise.%player%} is set:
send "&9Disguise> &7You are no longer disguised!"
execute console command "/ud %player%"
delete {mineplex.disguise.%player%}
set player tab name to "%{mineplex.rank.%player%}%&e%player%"
set {_br} to uncolored {mineplex.rank.%player%}
set {mineplex.api.displayrank.%player%} to "%{_br}%"
set {mineplex.api.displayname.%player%} to "%player%"
else:
send "&9Disguise> &7Command List:%nl%&4/disguise <player> &7Makes you appear as target player in chat and tab &4Admin"
else:
if {mineplex.disguise.%player%} is set:
send "&9Disguise> &7You are already disguised. Please undisguise by using /disguise"
else:
set {_n} to the length of arg 1
if {_n} is greater than 16:
send "&9Disguise> &7That disguise name is not permitted!"
stop
set {_p1} to "%arg-1%" parsed as offline player
if {_p1} has permission "mineplex.trainee" or "mineplex.youtube" or "mineplex.twitch":
send "&9Disguise> &7You may not disguise as people who are staff members, youtubers, and streamers."
stop
if {banned::%{_p1}%} or {muted::%{_p1}%} is set:
send "&9Disguise> &7You may not disguise as people who are muted or banned."
stop
send "&9Disguise> &7Disguise Active: &f%arg-1%"
if {mineplex.level.%arg-1%} is not set:
set {mineplex.level.%arg-1%} to "&70"
if {mineplex.rank.%arg-1%} is not set:
set {mineplex.rank.%arg-1%} to ""
execute console command "/odisguise %player% player %arg-1%"
set {mineplex.disguise.%player%} to "%arg-1%" parsed as offline player
set {_player} to arg 1
if {mineplex.rank.%{_player}%} is not set:
set {mineplex.rank.%{_player}%} to ""
set player tab name to "%{mineplex.rank.%{_player}%}%&e%arg-1%"
set {_br} to uncolored {mineplex.rank.%player%}
set {_dr} to uncolored {mineplex.rank.%{mineplex.disguise.%player%}%}
replace all " " in {_br} with ""
replace all " " in {_dr} with ""
if {_dr} is "":
set {_dr} to "No Rank"
set {mineplex.api.displayrank.%player%} to "%{_dr}% (%{_br}%)"
set {mineplex.api.displayname.%player%} to "%{mineplex.disguise.%player%}%"
command /debugapi [<string>] [<string>] [<string>]:
trigger:
if arg 1 is not set:
send "&9API> &7Mineplex Core API"
send "&9API> &7/debugapi (api name)"
send "&9API> &7Current API's; &adisplayrank&7, &adisplayname"
send "&9API> &7Use /debugapi (api name) (player) to view a diffrent players's api output"
else:
if arg 2 is set:
set {_p} to "%arg-2%"
else:
set {_p} to "%player%"
if arg 1 is "displayrank":
send "&9API> &7Raw API Output; &f%{mineplex.api.displayrank.%{_p}%}%"
else if arg 1 is "displayname":
send "&9API> &7Raw API Output; &f%{mineplex.api.displayname.%{_p}%}%"
else:
send "&9API> &7Invalid API!"
command /give [<string>] [<string>] [<string>] [<string>]:
aliases: /g, /item, /i
permission: mineplex.admin
permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
trigger:
if arg 1 is not set:
send "&9Give: &7Listing Commands:"
send "&4/give (item) Admin"
send "&4/give (player) (item) (amount) Admin"
send "&4/give all (item) (amount) Admin"
else:
if arg 2 is not set:
set {_i} to "%arg-1%" parsed as an item
if {_i} is an item:
send "&9Give> &7You gave &e1 %{_i}% &7to &e%player%&7."
give player {_i}
else:
send "&9Item Search> &e0 &7matches for [&e%{_i}%&7]."
send "&9Item(s) Search> &7Invalid [&e%{_i}%&7]."
if arg 2 is set:
if arg 3 is set:
if arg 1 is "all":
set {_i} to "%arg-2%" parsed as an item
set {_a} to "%arg-3%" parsed as a number
if {_i} is an item:
if {_a} is a number:
send "&9Give> &7You gave &e%{_a}% %{_i}% &7to &eALL&7."
send "&9Give> &7You received &e%{_a}% %{_i}% &7from &e%player%&7." to all players
loop all players:
loop {_a} times:
give loop-player {_i}
else:
send "&9Give> &7Invalid Amount [%arg-3%]. Defaulting to [1]."
send "&9Give> &7You gave &e1 %{_i}% &7to &eALL&7."
send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to all players
loop all players:
give loop-player {_i}
else:
send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
else:
set {_i} to "%arg-2%" parsed as an item
set {_a} to "%arg-3%" parsed as a number
set {_p} to "%arg-1%" parsed as a player
if {_i} is an item:
if {_p} is online:
if {_a} is a number:
send "&9Give> &7You gave &e%{_a}% %{_i}% &7to &e%{_p}%&7."
send "&9Give> &7You received &e%{_a}% %{_i}% &7from &e%player%&7." to {_p}
loop {_a} times:
give {_p} {_i}
else:
send "&9Give> &7Invalid Amount [%arg-3%]. Defaulting to [1]."
send "&9Give> &7You gave &e1 %{_i}% &7to &e%{_p}%&7."
send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to {_p}
give {_p} {_i}
else:
send "&9Online Player Search> &e0 &7matches for [&e%arg-1%&7]."
send "&9Online Player(s) Search> &7Invalid [&e%arg-1%&7]."
stop
else:
send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
else:
if arg 1 is "all":
set {_i} to "%arg-2%" parsed as an item
if {_i} is an item:
send "&9Give> &7You gave &e1 %{_i}% &7to &eALL&7."
send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to all players
loop all players:
give loop-player {_i}
else:
send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
else:
set {_i} to "%arg-2%" parsed as an item
set {_p} to "%arg-1%" parsed as a player
if {_i} is an item:
if {_p} is online:
send "&9Give> &7You gave &e1 %{_i}% &7to &e%{_p}%&7."
send "&9Give> &7You received &e1 %{_i}% &7from &e%player%&7." to {_p}
give {_p} {_i}
else:
send "&9Online Player Search> &e0 &7matches for [&e%arg-1%&7]."
send "&9Online Player(s) Search> &7Invalid [&e%arg-1%&7]."
stop
else:
send "&9Item Search> &e0 &7matches for [&e%arg-2%&7]."
send "&9Item(s) Search> &7Invalid [&e%arg-2%&7]."
command /tpall:
permission: mineplex.owner
permission message: &9Permissions> &7This requires Permmission Rank [&9OWNER&7].
trigger:
send "&9Teleport> &7You teleported &e%amount of players% Players &7to yourself."
broadcast "&9Teleport> &7You teleported to &e%player%&7."
teleport all players to player
command /__mp__st__:
trigger:
if {mineplex.news.allow} is true:
send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line1}%" for 3.5 seconds
wait 3 seconds
send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line2}%" for 3.5 seconds
wait 3 seconds
send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line3}%" for 3.5 seconds
wait 3 seconds
send player title "&6&l%{mineplex.config.servername}%" with subtitle "%{mineplex.news.line4}%" for 3.5 seconds
command /updatelevel [<string>] [<integer>]:
permission: mineplex.admin
permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
trigger:
if arg 1 is set:
if arg 2 is set:
if arg 2 is less than 0:
set {_temp} to "&d%arg-2%"
set {mineplex.level.%arg-1%} to "%{_temp}%"
send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
stop
else if arg 2 is less than 20:
set {_temp} to "&7%arg-2%"
set {mineplex.level.%arg-1%} to "%{_temp}%"
send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
stop
else if arg 2 is less than 40:
set {_temp} to "&9%arg-2%"
set {mineplex.level.%arg-1%} to "%{_temp}%"
send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
stop
else if arg 2 is less than 60:
set {_temp} to "&2%arg-2%"
set {mineplex.level.%arg-1%} to "%{_temp}%"
send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
stop
else if arg 2 is less than 80:
set {_temp} to "&6%arg-2%"
set {mineplex.level.%arg-1%} to "%{_temp}%"
send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
stop
else if arg 2 is less than or equal to 100:
set {_temp} to "&c%arg-2%"
set {mineplex.level.%arg-1%} to "%{_temp}%"
send "&9Stats> &7Applied &e%arg-2% Global.ExpEarned &7to &e%arg-1%&7."
stop
else:
send "&9Level> &7There was a problem parsing your request...please try again."
else:
send "&9Level> &7/updatelevel (player) (level)"
else:
send "&9Level> &7/updatelevel (player) (level)"
command /mcr:
trigger:
send "&9Plugin> &7Mineplex Core"
send "&9Plugin> &7Running MCR: &e{@MCRVER}"
send "&9Plugin> &7by WheezyGold7931, LimeGlass, Citrin_, and HappyLuigi"
command /a [<text>]:
aliases: /admin
trigger:
if arg 1 is not set:
send "&9Admin> &7Corect Usage: /a (message)"
stop
if {mineplex.disguise.%player%} is set:
set {_p} to {mineplex.disguise.%player%}
else:
set {_p} to player
if player has permission "mineplex.trainee":
loop all players:
if loop-player has permission "mineplex.trainee":
send "&a%{mineplex.rank.%{_p}%}%%{_p}% &d%arg-1%" to loop-player
else:
send "&a%{mineplex.rank.%{_p}%}% %{_p}% &d%arg-1%"
loop all players:
if loop-player has permission "mineplex.trainee":
send "&a%{mineplex.rank.%{_p}%}%%{_p}% &d%{_p}%" to loop-player
command /ma [<player>] [<text>]:
trigger:
if {mineplex.disguise.%player%} is set:
set {_p} to {mineplex.disguise.%player%}
else:
set {_p} to player
if player has permission "mineplex.trainee":
if argument 1 is set:
send "&d<-&6%{_p}% &d%arg-2%" to arg-1
loop all players:
if loop-player has permission "mineplex.trainee":
send "%{mineplex.rank.%{_p}%}%%{_p}% &d-> %{mineplex.rank.%arg-1%}%%arg-1% &d%arg-2%" to loop-player
else:
send "&9Message> &cErr...something went wrong?"
else:
send "&9Permissions> &7This requires Permmission Rank [&9TRAINEE&7]."
command /vanish:
permission: mineplex.trainee
permission message: &9Permissions> &7This requires Permmission Rank [&9TRAINEE&7].
trigger:
if {mineplex.vanish.%player%} is true:
loop all offline players:
loop-value doesn't have permission "mineplex.admin"
add loop-value to {_vanishto::*}
reveal player from {_vanishto::*}
set {mineplex.vanish.%player%} to false
send "&9Incognito> &7You are no longer incognito. Your status will only change when you run &e/vanish &7again."
else:
loop all offline players:
loop-value doesn't have permission "mineplex.admin"
add loop-value to {_vanishto::*}
hide player from {_vanishto::*}
set {mineplex.vanish.%player%} to true
send "&9Incognito> &7You are now incognito. Your status will only change when you run &e/vanish &7again."
send ""
send ""
send "&6&lYou are currently incognito"
send "&eThis means you are invisible to all excepet for those who are"
send "&4Admin&f+"
send ""
send ""
command /chatslow [<integer>]:
aliases: /cs
permission: mineplex.srmod
permission message: &9Permissions> &7This requires Permmission Rank [&9SR.MOD&7].
trigger:
if {mineplex.disguise.%player%} is set:
set {_p} to {mineplex.disguise.%player%}
else:
set {_p} to player
if argument 1 is set:
if {mineplex.chatsilence} is set:
send "&9Chat> &7Chat is in silence mode. Disable silence mode to activate slow chat."
stop
else:
if {mineplex.chatslow} is not set:
set {mineplex.chatslow} to "%arg-2% seconds" parsed as timespan
send "&9Chat> &6%{_p}% &7has set the chat delay to &6%arg-1%&7 seconds." to all players
else:
set {mineplex.chatslow} to "%arg-2% seconds" parsed as timespan
send "&9Chat> &6%{_p}% &7has enabled chat slow." to all players
send "&9Chat> &6%{_p}% &7has set the chat delay to &6%arg-1%&7 seconds." to all players
else:
if {mineplex.chatsilence} is set:
send "&9Chat> &7Chat is in silence mode. Disable silence mode to activate slow chat."
stop
else:
if {mineplex.chatslow} is set:
delete {mineplex.chatslow}
send "&9Chat> &6%{_p}% &7has disabled chat slow." to all players
else:
send "&9Message> &cYou didn't enter a time limit! Defaulting to 10 seconds."
set {mineplex.chatslow} to "10 seconds" parsed as timespan
send "&9Chat> &6%{_p}% &7has enabled chat slow." to all players
send "&9Chat> &6%{_p}% &7has set the chat delay to &610 &7seconds." to all players
command /silence:
permission: mineplex.admin
permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
trigger:
if {mineplex.chatslow} is set:
delete {mineplex.chatslow}
send "&9Chat> &6%player% &7has disabled chat slow." to all players
set {mineplex.chatsilence} to true
send "&9Chat> &7The chat has been silenced for Permanent." to all players
stop
if {mineplex.chatsilence} is set:
delete {mineplex.chatsilence}
send "&9Chat> &7The chat has been un-silenced." to all players
else:
set {mineplex.chatsilence} to true
send "&9Chat> &7The chat has been silenced for Permanent." to all players
command /locate [<string>]:
aliases: /find, /where
permission: mineplex.mod
permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
trigger:
if argument 1 is set:
set {_tmp} to arg 1 parsed as an offline player
if {_tmp} is online:
set {_mineplex.locate.temp} to "%{_tmp}'s world%"
send "&9Locate> &7Located [&e%arg-1%&7] at &9%{_mineplex.locate.temp}%"
else:
send "&9Locate> &7Failed to locate [&e%arg-1%&7]."
else:
send "&9Locate> &7Player argument missing."
command /tp [<player>] [<player>]:
permission: mineplex.mod
permission message: &9Permissions> &7This requires Permmission Rank [&9MOD&7].
trigger:
if argument 1 is set:
if argument 2 is set:
if player has permission "mineplex.admin":
teleport arg-1 to arg-2
send "&9Teleport> &7Teleported &6%arg-1% to &6%arg-2%&7."
else:
send "&9Permissions> &7This requires Permmission Rank [&9ADMIN&7]."
else:
teleport player to arg-1
send "&9Teleport> &7Teleported you to &6%arg-1%&7."
else:
send "&9Message> &cErr...something went wrong?"
command /tphere [<player>]:
permission: mineplex.admin
permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
trigger:
if argument 1 is set:
teleport arg-1 to player
send "&9Teleport> &7Teleported &6%arg-1% &7to you."
else:
send "&9Message> &cErr...something went wrong?"
command /updaterank [<offline player>] [<string>]:
permission: mineplex.admin
permission message: &9Permissions> &7This requires Permmission Rank [&9ADMIN&7].
trigger:
if argument 1 or argument 2 is not set:
send "&9Client Manager> &7Listing Rank Update Commands:"
send "&f/updaterank (player) (rank): &eupdates chosen player's rank to the chosen rank"
send ""
send "&9Rank Update> &7Listing Rank List:"
send "&9Ranks> &7MEMBER"
send "&9Ranks> &7ULTRA"
send "&9Ranks> &7HERO"
send "&9Ranks> &7LEGEND"
send "&9Ranks> &7TITAN"
send "&9Ranks> &7ETERNAL"
send "&9Ranks> &7TRAINEE"
send "&9Ranks> &7MOD"
send "&9Ranks> &7SRMOD"
send "&9Ranks> &7CMOD"
send "&9Ranks> &7ADMIN"
send "&9Ranks> &7LEADER"
send "&9Ranks> &7OWNER"
send "&9Ranks> &7BUILDER"
send "&9Ranks> &7SUPPORT"
send "&9Ranks> &7MEDIA"
send "&9Ranks> &7MAPLEAD"
send "&9Ranks> &7JRDEV"
send "&9Ranks> &7DEV"
send "&9Ranks> &7TWITCH"
send "&9Ranks> &7YOUTUBE"
send "&9Ranks> &7YT"
if argument 2 is "MEMBER":
if argument 2 is set: #These should now no longer mater so lel.
set {mineplex.rank.%arg-1%} to ""
execute console command "/__mp__dp__ %arg-1%"
send "&9Client Manager> &7%arg-1%'s rank has been updated to None!"
send "&9Client Manager> &7Your rank has been updated to None!" to arg 1
set arg-1 tab name to "&e%arg-1%"
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "ULTRA":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&b&lULTRA "
execute console command "/__mp__dp__ %arg-1%"
send "&9Client Manager> &7%arg-1%'s rank has been updated to Ultra!"
send "&9Client Manager> &7Your rank has been updated to Ultra!" to arg 1
set arg-1 tab name to "&b&lULTRA &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "HERO":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&d&lHERO "
execute console command "/__mp__dp__ %arg-1%"
send "&9Client Manager> &7%arg-1%'s rank has been updated to Hero!"
send "&9Client Manager> &7Your rank has been updated to Hero!" to arg 1
set arg-1 tab name to "&d&lHERO &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "LEGEND":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&a&lLEGEND "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.legend" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Legend!"
send "&9Client Manager> &7Your rank has been updated to Legend!" to arg 1
set arg-1 tab name to "&a&lLEGEND &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "TITAN":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&c&lTITAN "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.legend" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Titan!"
send "&9Client Manager> &7Your rank has been updated to Titan!" to arg 1
set arg-1 tab name to "&c&lTITAN &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "ETERNAL":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&3&lETERNAL "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.legend" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Eternal!"
send "&9Client Manager> &7Your rank has been updated to Eternal!" to arg 1
set arg-1 tab name to "&3&lETERNAL &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "TRAINEE":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&6&lTRAINEE "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.trainee" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Trainee!"
send "&9Client Manager> &7Your rank has been updated to Trainee!" to arg 1
set arg-1 tab name to "&6&lTRAINEE &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "MOD":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&6&lMOD "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.trainee" to arg-1's permissions
add "mineplex.mod" to arg-1's permissions
add "mineplex.legend" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Mod!"
send "&9Client Manager> &7Your rank has been updated to Mod!" to arg 1
set arg-1 tab name to "&6&lMOD &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "SRMOD":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&6&lSR.MOD "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.trainee" to arg-1's permissions
add "mineplex.mod" to arg-1's permissions
add "mineplex.srmod" to arg-1's permissions
add "mineplex.legend" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Sr.Mod!"
send "&9Client Manager> &7Your rank has been updated to Sr.Mod!" to arg 1
set arg-1 tab name to "&6&lSR.MOD &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "CMOD":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&6&lC.MOD "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.trainee" to arg-1's permissions
add "mineplex.mod" to arg-1's permissions
add "mineplex.srmod" to arg-1's permissions
add "mineplex.legend" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to C.Mod!"
send "&9Client Manager> &7Your rank has been updated to C.Mod!" to arg 1
set arg-1 tab name to "&6&lC.MOD &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "ADMIN":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&4&lADMIN "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.trainee" to arg-1's permissions
add "mineplex.legend" to arg-1's permissions
add "mineplex.mod" to arg-1's permissions
add "mineplex.builder" to arg-1's permissions
add "mineplex.srmod" to arg-1's permissions
add "mineplex.admin" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Admin!"
send "&9Client Manager> &7Your rank has been updated to Admin!" to arg 1
set arg-1 tab name to "&4&lADMIN &e%arg-1%"
updateRankAPI(arg-1)
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "LEADER":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&4&lLEADER "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.trainee" to arg-1's permissions
add "mineplex.mod" to arg-1's permissions
add "mineplex.builder" to arg-1's permissions
add "mineplex.srmod" to arg-1's permissions
add "mineplex.admin" to arg-1's permissions
add "mineplex.leader" to arg-1's permissions
send "&9Client Manager> &7%arg-1%'s rank has been updated to Leader!"
send "&9Client Manager> &7Your rank has been updated to Leader!" to arg 1
set arg-1 tab name to "&4&lLEADER &e%arg-1%"
else:
send "&9Message> &cErr...something went wrong?"
else if argument 2 is "OWNER":
if argument 2 is set:
set {mineplex.rank.%arg-1%} to "&4&lOWNER "
execute console command "/__mp__dp__ %arg-1%"
add "mineplex.trainee" to arg-1's permissions
add "mineplex.mod" to arg-1's permissions
add "mineplex.srmod" to arg-1's permissions