Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mute <player> [<text>] [<text>]:
- permission: sk.mute
- usage: /mute <player> [<reason>] [<time>]
- trigger:
- if {mute.%arg 1%} is true:
- message "&aYou have been unmuted!" to arg 1
- set {mute.%arg 1%} to false
- broadcast "&b%arg 1% &3has been unmuted!"
- else:
- set {mute.%arg 1%} to true
- message "&cYou have been muted!" to arg 1
- broadcast "&b%arg 1% &3has been muted by &b%player% &3for &7[%arg 2%]"
- set {reason.%arg 1%} to arg 2
- on chat:
- if {mute.%player%} is true:
- message "&cYou are muted! &7Reason: [%{reason.%player%}%]"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement