Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Whitelist skript by dvwinn
- # Feel free to edit for personal use
- # To access normal mute command, do /essentials:mute
- options:
- permission : skript.mute
- prefix : &8[&7Mute&8]&7
- bypass : skript.mute.bypass
- variables:
- {mutebc} = op
- command /mute <text> [<text>]:
- description: Mutes/unmutes a player
- usage: /mute <player/broadcast>
- permission: {@permission}
- permission message: §4You don't have permission to use this command
- executable by: players and console
- trigger:
- if arg 1 is "broadcast":
- if arg 2 is "op":
- set {wlbroadcast} to "op"
- message "{@prefix} Broadcast set to op" to command sender
- else if arg 2 is "all":
- set {wlbroadcast} to "all"
- message "{@prefix} Broadcast set to all" to command sender
- else if arg 2 is "none":
- set {wlbroadcast} to "none"
- message "{@prefix} Broadcast set to none" to command sender
- else:
- message "{@prefix} Please set it to op, all or none" to command sender
- else:
- if {muted.%arg 1%} is not set:
- set {muted.%arg 1%} to true
- if {mutebroadcast} is "op":
- loop all players:
- loop-player is op
- message "{@prefix} %arg 1% muted by %player%" to loop-player
- else if {mutebroadcast} is "all":
- broadcast "{@prefix} %arg 1% muted by %player%"
- else:
- message "{@prefix} %arg 1% muted by %player%" to command sender
- else:
- delete {muted.%arg 1%}
- if {mutebroadcast} is "op":
- loop all players:
- loop-player is op
- message "{@prefix} %arg 1% unmuted by %player%" to loop-player
- else if {mutebroadcast} is "all":
- broadcast "{@prefix} %arg 1% unmuted by %player%"
- else:
- message "{@prefix} %arg 1% unmuted by %player%" to command sender
- on chat:
- {muted.%player%} is true
- cancel the event
- message "{@prefix} You are muted! To request to be unmuted, do /unmuteme"
- on command:
- command is equal to "me", "bukkit:me", "minecraft:me", "afk", "helpop", "msg", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper"
- {muted.%player%} is true
- cancel the event
- message "{@prefix} You are muted! To request to be unmuted, do /unmuteme"
- command /unmuteme [<text>]:
- trigger:
- {muted.%player%} is true
- if {cooldown.%player%} is not set:
- if arg 1 is not set:
- message "{@prefix} Do /unmuteme <message> to request to be unmuted. There is a 10 minute cooldown on this command." to command sender
- else:
- loop all players:
- loop-player has permission "skript.mute"
- message "{@prefix} %command sender% requests an unmute for %arg 1%" to loop-player
- message "{@prefix} Request sent. There is a 10 minute cooldown on this command" to command sender
- set {cooldown.%player%} to true
- wait for 10 minutes
- delete {cooldown.%player%}
- else:
- message "{@prefix} This command is on cooldown for you"
- command /muteall:
- description: Mutes/unmutes all players
- usage: /muteall
- permission: {@permission}
- permission message: §4You don't have permission to use this command
- executable by: players and console
- trigger:
- if {muteall} is not set:
- set {muteall} to true
- broadcast "{@prefix} All players muted!"
- else:
- delete {muteall}
- broadcast "{@prefix} All players unmuted!"
- on chat:
- {muteall} is true
- player does not have permission "{@bypass}"
- cancel the event
- message "{@prefix} All players are muted!"
- on command:
- command is equal to "me", "bukkit:me", "minecraft:me", "afk", "helpop", "msg", "w", "mail", "m", "t", "whisper", "emsg", "tell", "email", "etell" or "ewhisper"
- {muteall} is true
- player does not have permission "{@bypass}"
- cancel the event
- message "{@prefix} All players are muted!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement