SHOW:
|
|
- or go back to the newest paste.
1 | - | # Whitelist skript by dvwinn |
1 | + | # Mute skript by dvwinn |
2 | - | # Feel free to edit for personal use |
2 | + | # Feel free to edit for personal use |
3 | - | # To access normal mute command, do /essentials:mute |
3 | + | # To access normal mute command, do /essentials:mute |
4 | - | |
4 | + | |
5 | - | options: |
5 | + | options: |
6 | - | permission : skript.mute |
6 | + | permission : skript.mute |
7 | - | prefix : &8[&7Mute&8]&7 |
7 | + | prefix : &8[&7Mute&8]&7 |
8 | - | bypass : skript.mute.bypass |
8 | + | bypass : skript.mute.bypass |
9 | - | |
9 | + | |
10 | - | variables: |
10 | + | variables: |
11 | - | {mutebc} = op |
11 | + | {mutebc} = op |
12 | - | |
12 | + | |
13 | - | command /mute <text> [<text>]: |
13 | + | command /mute <text> [<text>]: |
14 | - | description: Mutes/unmutes a player |
14 | + | description: Mutes/unmutes a player |
15 | - | usage: /mute <player/broadcast> |
15 | + | usage: /mute <player/broadcast> |
16 | - | permission: {@permission} |
16 | + | permission: {@permission} |
17 | - | permission message: §4You don't have permission to use this command |
17 | + | permission message: §4You don't have permission to use this command |
18 | - | executable by: players and console |
18 | + | executable by: players and console |
19 | - | trigger: |
19 | + | trigger: |
20 | - | if arg 1 is "broadcast": |
20 | + | if arg 1 is "broadcast": |
21 | - | if arg 2 is "op": |
21 | + | if arg 2 is "op": |
22 | - | set {wlbroadcast} to "op" |
22 | + | set {mutebc} to "op" |
23 | - | message "{@prefix} Broadcast set to op" to command sender |
23 | + | message "{@prefix} Broadcast set to op" to command sender |
24 | - | else if arg 2 is "all": |
24 | + | else if arg 2 is "all": |
25 | - | set {wlbroadcast} to "all" |
25 | + | set {mutebc} to "all" |
26 | - | message "{@prefix} Broadcast set to all" to command sender |
26 | + | message "{@prefix} Broadcast set to all" to command sender |
27 | - | else if arg 2 is "none": |
27 | + | else if arg 2 is "none": |
28 | - | set {wlbroadcast} to "none" |
28 | + | set {mutebc} to "none" |
29 | - | message "{@prefix} Broadcast set to none" to command sender |
29 | + | message "{@prefix} Broadcast set to none" to command sender |
30 | - | else: |
30 | + | else: |
31 | - | message "{@prefix} Please set it to op, all or none" to command sender |
31 | + | message "{@prefix} Please set it to op, all or none" to command sender |
32 | - | else: |
32 | + | else: |
33 | - | if {muted.%arg 1%} is not set: |
33 | + | if {muted.%arg 1%} is not set: |
34 | - | set {muted.%arg 1%} to true |
34 | + | set {muted.%arg 1%} to true |
35 | - | if {mutebroadcast} is "op": |
35 | + | if {mutebc} is "op": |
36 | - | loop all players: |
36 | + | loop all players: |
37 | - | loop-player is op |
37 | + | loop-player is op |
38 | - | message "{@prefix} %arg 1% muted by %player%" to loop-player |
38 | + | message "{@prefix} %arg 1% muted by %player%" to loop-player |
39 | - | else if {mutebroadcast} is "all": |
39 | + | else if {mutebc} is "all": |
40 | - | broadcast "{@prefix} %arg 1% muted by %player%" |
40 | + | broadcast "{@prefix} %arg 1% muted by %player%" |
41 | - | else: |
41 | + | else: |
42 | - | message "{@prefix} %arg 1% muted by %player%" to command sender |
42 | + | message "{@prefix} %arg 1% muted by %player%" to command sender |
43 | - | else: |
43 | + | else: |
44 | - | delete {muted.%arg 1%} |
44 | + | delete {muted.%arg 1%} |
45 | - | if {mutebroadcast} is "op": |
45 | + | if {mutebc} is "op": |
46 | - | loop all players: |
46 | + | loop all players: |
47 | - | loop-player is op |
47 | + | loop-player is op |
48 | - | message "{@prefix} %arg 1% unmuted by %player%" to loop-player |
48 | + | message "{@prefix} %arg 1% unmuted by %player%" to loop-player |
49 | - | else if {mutebroadcast} is "all": |
49 | + | else if {mutebc} is "all": |
50 | - | broadcast "{@prefix} %arg 1% unmuted by %player%" |
50 | + | broadcast "{@prefix} %arg 1% unmuted by %player%" |
51 | - | else: |
51 | + | else: |
52 | - | message "{@prefix} %arg 1% unmuted by %player%" to command sender |
52 | + | message "{@prefix} %arg 1% unmuted by %player%" to command sender |
53 | - | |
53 | + | |
54 | - | on chat: |
54 | + | on chat: |
55 | - | {muted.%player%} is true |
55 | + | {muted.%player%} is true |
56 | - | cancel the event |
56 | + | cancel the event |
57 | - | message "{@prefix} You are muted! To request to be unmuted, do /unmuteme" |
57 | + | message "{@prefix} You are muted! To request to be unmuted, do /unmuteme" |
58 | - | |
58 | + | |
59 | - | on command: |
59 | + | on command: |
60 | - | command is equal to "me", "bukkit:me", "minecraft:me", "afk", "helpop", "msg", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper" |
60 | + | command is equal to "me", "bukkit:me", "minecraft:me", "afk", "helpop", "msg", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper" |
61 | - | {muted.%player%} is true |
61 | + | {muted.%player%} is true |
62 | - | cancel the event |
62 | + | cancel the event |
63 | - | message "{@prefix} You are muted! To request to be unmuted, do /unmuteme" |
63 | + | message "{@prefix} You are muted! To request to be unmuted, do /unmuteme" |
64 | - | |
64 | + | |
65 | - | command /unmuteme [<text>]: |
65 | + | command /unmuteme [<text>]: |
66 | - | trigger: |
66 | + | trigger: |
67 | - | {muted.%player%} is true |
67 | + | {muted.%player%} is true |
68 | - | if {cooldown.%player%} is not set: |
68 | + | if {cooldown.%player%} is not set: |
69 | - | if arg 1 is not set: |
69 | + | if arg 1 is not set: |
70 | - | message "{@prefix} Do /unmuteme <message> to request to be unmuted. There is a 10 minute cooldown on this command." to command sender |
70 | + | message "{@prefix} Do /unmuteme <message> to request to be unmuted. There is a 10 minute cooldown on this command." to command sender |
71 | - | else: |
71 | + | else: |
72 | - | loop all players: |
72 | + | loop all players: |
73 | - | loop-player has permission "skript.mute" |
73 | + | loop-player has permission "skript.mute" |
74 | - | message "{@prefix} %command sender% requests an unmute for %arg 1%" to loop-player |
74 | + | message "{@prefix} %command sender% requests an unmute for %arg 1%" to loop-player |
75 | - | message "{@prefix} Request sent. There is a 10 minute cooldown on this command" to command sender |
75 | + | message "{@prefix} Request sent. There is a 10 minute cooldown on this command" to command sender |
76 | - | set {cooldown.%player%} to true |
76 | + | set {cooldown.%player%} to true |
77 | - | wait for 10 minutes |
77 | + | wait for 10 minutes |
78 | - | delete {cooldown.%player%} |
78 | + | delete {cooldown.%player%} |
79 | - | else: |
79 | + | else: |
80 | - | message "{@prefix} This command is on cooldown for you" |
80 | + | message "{@prefix} This command is on cooldown for you" |
81 | - | |
81 | + | |
82 | - | command /muteall: |
82 | + | command /muteall: |
83 | - | description: Mutes/unmutes all players |
83 | + | description: Mutes/unmutes all players |
84 | - | usage: /muteall |
84 | + | usage: /muteall |
85 | - | permission: {@permission} |
85 | + | permission: {@permission} |
86 | - | permission message: §4You don't have permission to use this command |
86 | + | permission message: §4You don't have permission to use this command |
87 | - | executable by: players and console |
87 | + | executable by: players and console |
88 | - | trigger: |
88 | + | trigger: |
89 | - | if {muteall} is not set: |
89 | + | if {muteall} is not set: |
90 | - | set {muteall} to true |
90 | + | set {muteall} to true |
91 | - | broadcast "{@prefix} All players muted!" |
91 | + | broadcast "{@prefix} All players muted!" |
92 | - | else: |
92 | + | else: |
93 | - | delete {muteall} |
93 | + | delete {muteall} |
94 | - | broadcast "{@prefix} All players unmuted!" |
94 | + | broadcast "{@prefix} All players unmuted!" |
95 | - | |
95 | + | |
96 | - | on chat: |
96 | + | on chat: |
97 | - | {muteall} is true |
97 | + | {muteall} is true |
98 | - | player does not have permission "{@bypass}" |
98 | + | player does not have permission "{@bypass}" |
99 | - | cancel the event |
99 | + | cancel the event |
100 | message "{@prefix} All players are muted!" | |
101 | - | |
101 | + | |
102 | - | on command: |
102 | + | on command: |
103 | - | command is equal to "me", "bukkit:me", "minecraft:me", "afk", "helpop", "msg", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper" |
103 | + | command is equal to "me", "bukkit:me", "minecraft:me", "afk", "helpop", "msg", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper" |
104 | - | {muteall} is true |
104 | + | {muteall} is true |
105 | - | player does not have permission "{@bypass}" |
105 | + | player does not have permission "{@bypass}" |
106 | - | cancel the event |
106 | + | cancel the event |
107 | message "{@prefix} All players are muted!" |