Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /chat <text>:
- permission: skript.op
- usage: /c <clear/mute>
- aliases: /c
- trigger:
- if arg 1 is "clear" or "c":
- loop all players:
- {si::on::%loop-player%} is not set
- loop 99 times:
- send "" to loop-player
- broadcast "{@PP} The chat was cleared."
- else if arg 1 is "mute" or "m":
- if {UHC::Chat::Muted} is true:
- delete {UHC::Chat::Muted}
- broadcast "{@PP} The chat was been &aenabled{@N}."
- else:
- set {UHC::Chat::Muted} to true
- broadcast "{@PP} The chat was been &cdisabled{@N}."
- on chat:
- {UHC::Chat::Muted} is true
- cancel event
- on tab completer for "/chat":
- player has permission "skript.op"
- loop split "clear mute" at " ":
- add "%loop-value%" to completions
Advertisement
Add Comment
Please, Sign In to add comment