happyfone Posted December 8, 2019 Share Posted December 8, 2019 (edited) command /chat [<text>]: trigger: if player has permission "skript.chatcontrol": if arg 1 is set: if arg 1 is "grey": if {greychat} is true: set {greychat} to false message "grey chat disabled" else: set {greychat} to true message "grey chat enabled" if arg 1 is "help": message " " message "&c--------&6Skript Chat Control Help&c--------" message " " message "&6/chat clear &cto clear chat" message " " message "&6/chat mute &cto mute the chat" message " " message "&6/chat help &cto show this help page" message " " message "&6/chat grey&c to make chat look better" message " " if arg 1 is "clear": loop 100 times: broadcast " " broadcast "Chat cleared by %player%" if arg 1 is "mute": if {chatmute} is "true": message "Chat has been unmuted" set {chatmute} to "false" else: message "Chat has been muted" set {chatmute} to "true" else: message "&cUsage:&a /chat (help|mute|clear|grey)" else: kick player due to "&4You cannot execute that command" on chat: if {chatmute} is "false": if {greychat} is true: cancel event broadcast "&8<&6%player%&8> %message%" on chat: if {chatmute} is "true": cancel event message "&cYou cannot speak when the chat is muted!" else: if {greychat} is false: cancel event broadcast "<%player%> %message%" Commands: /chat help (Shows a list of commands) /chat grey (makes the chat look nicer until you type the command again) /chat mute (mutes the chat until you type the command again) /chat clear (clears the chat) Permission nodes: skript.chatcontrol (allows user to use /chat) if player does not have the permission "skript.chatcontrol" the player will be kicked for trying to execute /chat chat-manager.sk Edited December 8, 2019 by happyfone Download my latest Skript plugin: Happy Fone Command Blocker DONWLOAD NOW!! \/\/\/\/\/\/\/\/\/\/\/\/\/ command-blocker.sk Link to comment Share on other sites More sharing options...
xX__Strqfe__Xx Posted December 12, 2019 Share Posted December 12, 2019 nice, but you forgot to add that when a player is op, they can still speak 1 Link to comment Share on other sites More sharing options...
Diamistic Posted December 13, 2019 Share Posted December 13, 2019 Well done as always. 1 aeiou Link to comment Share on other sites More sharing options...
403Denied Posted June 27, 2020 Share Posted June 27, 2020 On 12/12/2019 at 5:54 PM, xX__Strqfe__Xx said: nice, but you forgot to add that when a player is op, they can still speak YES! add that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now