SHOW:
|
|
- or go back to the newest paste.
1 | - | # CUSTOM BROADCAST |
1 | + | |
2 | # ----------------------------- # | |
3 | - | # V.0.1 |
3 | + | |
4 | # ----------------------------- # | |
5 | - | # BY SKGEEK ALIAS SKYZIK |
5 | + | |
6 | ||
7 | - | # SUBSCRIBE : https://www.youtube.com/user/SkyZik1 |
7 | + | |
8 | ||
9 | - | # SORRY FOR MY BAD ENGLISH |
9 | + | |
10 | ||
11 | - | # I'M FRENCH ! |
11 | + | |
12 | ColorBasicBroadcast: &f # Set the color of basic broadcast ! | |
13 | ||
14 | PrefixPlayerBroadcast: &8[&e%player%&8] # Set the prefix of player broadcast ! %player% will be replaced by the name of the player ! | |
15 | ColorPlayerBroadcast: &f # Set the color of player broadcast ! | |
16 | ||
17 | PrefixConsoleBroadcast: &8[&9Console&8] # Set the color of console broadcast ! | |
18 | ColorConsoleBroadcast: &f # Set the color of console broadcast ! | |
19 | ||
20 | ErrorPermission: &cYou don't have the permission ! # Set the message when a player tries to use a command without having the permission! | |
21 | ErrorMissingArgument: &cError an argument is missing ! # Set the message when a player tries to use a command without argument! | |
22 | ||
23 | Reload: &aThe config was reloaded ! | |
24 | ||
25 | ||
26 | # # # # # # # # # # # # # # # # # # # # # | |
27 | # ------------------------------------- # | |
28 | # CODE DON'T TOUCH ! # | |
29 | # ------------------------------------- # | |
30 | # # # # # # # # # # # # # # # # # # # # # | |
31 | ||
32 | ||
33 | command /bc [<text>]: | |
34 | ||
35 | executable by: players and console | |
36 | ||
37 | aliases: /broadcast , /b | |
38 | ||
39 | trigger: | |
40 | ||
41 | if player has permission "bc.basic": | |
42 | ||
43 | if arg 1 is set: | |
44 | ||
45 | broadcast "{@PrefixBasicBroadcast} {@ColorBasicBroadcast}%arg 1%" | |
46 | stop | |
47 | ||
48 | else: | |
49 | ||
50 | message "{@Prefix} {@ErrorMissingArgument}" to player | |
51 | ||
52 | else: | |
53 | ||
54 | message "{@Prefix} {@ErrorPermission}" to player | |
55 | stop | |
56 | ||
57 | command /bcp [<text>]: | |
58 | ||
59 | executable by: players | |
60 | ||
61 | aliases: /broadcastp , /bp | |
62 | ||
63 | trigger: | |
64 | ||
65 | if player has permission "bc.player": | |
66 | ||
67 | if arg 1 is set: | |
68 | ||
69 | broadcast "{@PrefixPlayerBroadcast} {@ColorPlayerBroadcast}%arg 1%" | |
70 | stop | |
71 | ||
72 | else: | |
73 | ||
74 | message "{@Prefix} {@ErrorMissingArgument}" to player | |
75 | ||
76 | else: | |
77 | ||
78 | message "{@Prefix} {@ErrorPermission}" to player | |
79 | stop | |
80 | ||
81 | command /bcc [<text>]: | |
82 | ||
83 | executable by: console | |
84 | ||
85 | aliases: /broadcastc | |
86 | ||
87 | trigger: | |
88 | ||
89 | if arg 1 is set: | |
90 | ||
91 | broadcast "{@PrefixConsoleBroadcast} {@ColorConsoleBroadcast}%arg 1%" | |
92 | stop | |
93 | ||
94 | else: | |
95 | ||
96 | message "{@Prefix} {@ErrorMissingArgument}" to console | |
97 | ||
98 | command /cb [<text=help>]: | |
99 | ||
100 | aliases: /custombc , /custombroadcast | |
101 | ||
102 | trigger: | |
103 | ||
104 | if arg 1 is "help": | |
105 | ||
106 | message "&4&m-----[&c CUSTOM BROADCAST &4&m]-----" to player | |
107 | message " " to player | |
108 | message " &4* &c/bc <text> &4: &cBasic Broadcast " to player | |
109 | message " " to player | |
110 | message " &4* &c/bcp <text> &4: &cPlayer Broadcast " to player | |
111 | message " " to player | |
112 | message " &4* &c/bcc <text> &4: &cConsole Broadcast " to player | |
113 | message " " to player | |
114 | message " &4* &c/cb help &4: &cCustom Broadcast Help " to player | |
115 | message " " to player | |
116 | message " &4* &c/cb reload &4: &cReload The Config " to player | |
117 | message " " to player | |
118 | message "&4&m-----[&c CUSTOM BROADCAST &4&m]-----" to player | |
119 | stop | |
120 | ||
121 | if arg 1 is "reload": | |
122 | ||
123 | make player execute "/skript reload Custom Broadcast" | |
124 | wait 1 seconds | |
125 | message "{@Prefix} {@Reload}" to player | |
126 | stop |