Advertisement
CMDProGamer

Mute Skript

Mar 17th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. command /mute <player> [<text>] [<text>]:
  2. permission: sk.mute
  3. usage: /mute <player> [<reason>] [<time>]
  4. trigger:
  5. if {mute.%arg 1%} is true:
  6. message "&aYou have been unmuted!" to arg 1
  7. set {mute.%arg 1%} to false
  8. broadcast "&b%arg 1% &3has been unmuted!"
  9. else:
  10. set {mute.%arg 1%} to true
  11. message "&cYou have been muted!" to arg 1
  12. broadcast "&b%arg 1% &3has been muted by &b%player% &3for &7[%arg 2%]"
  13. set {reason.%arg 1%} to arg 2
  14. on chat:
  15. if {mute.%player%} is true:
  16. message "&cYou are muted! &7Reason: [%{reason.%player%}%]"
  17. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement