kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
48 stars 23 forks source link

1.17.1: How to allow certain players to mute the timed.rs with a command #1489

Closed HorusApl closed 2 years ago

HorusApl commented 2 years ago

Trying to figure out a way to allow players to not receive/see the messages in my auto-broadcast in timed.rs, I am using a format .yml file for each of them if that matters. I saw the page on the wiki about the "require permission..." but not quite sure how to implement and where to put it. Will have my timed.rs file below if someone could point out what to do.

Minecraft Version: 1.17.1 MySQL: false BungeeCord: false

HorusApl commented 2 years ago
# ---------------------------------------------------------------------------------
# Timed messages broadcaster. Uses the same syntax as files in rules/ folder but
# operators are slightly different. For documentation and a quick tutorial, see:
# https://github.com/kangarko/ChatControl-Red/wiki/messages
#
# They are read like a newspaper and each player only sees one message,
# that is the first one we can send to him. We select 1 message randomly from 
# "messages:" list.
# ---------------------------------------------------------------------------------

# You can run limited time offers and even make clickable links by referencing
# to a format from /formats in your message.
#group special
#expires 31 Dec 2021, 15:00
#then sound ENTITY_ARROW_HIT_PLAYER, 1.0, 0.1
#delay 6 seconds
#message:
#- special-offer

# This group will simply send messages everywhere.
group standard
delay 300 second
message:
- timed-buy
- timed-level
- &fAll resource worlds reset &x&f&0&3&0&3&0&lbi-weekly&f!
- timed-discord
- timed-mcmmo
- timed-vote
- &fSubmit any bugs/suggestions to the Discord!
- timed-help
- timed-resource
- timed-mobs
- timed-ref
- timed-profile
- &fHowus.
- timed-menu
- &fMake concrete easier! Throw the powder in a cauldron with water!
- timed-welcome
- timed-exp1
- timed-exp2
- timed-map

# This group will send messages only to the given worlds.
#group hardcore
#require sender world hardcore|hardcore_nether|hardcore_end
#message:
#- Grief is not permitted what-so-ever and every griefer will be banned.
#- Can you survive the night on {world} world?

# This group will only send messages to the creative world.
#group creative
#require sender world creative
#message:
#- Welcome on Creative world. Enjoy your gamemode :)
#- This is an example of multi-line.
#  Use it if the new '\ and n' character
#  is not working on your server.
#- This is another message, this time only on one line!
TheIntolerant commented 2 years ago

You should be able to do this with the toggle command. To make sure this works you will need to check in the settings.yml file, you have timed listed in Toggle.Apply_On.

The command for this can be edited if wanted under Toggle.Command_Aliases. By default, the command should be /toggle and /tg

The permission players will need I believe are as follows: chatcontrol.command.toggle.timed chatcontrol.command.toggle.on chatcontrol.command.toggle.off

And lastly, the full command players will need to type is /toggle timed {group} So for you, it will be: /toggle timed standard

TheIntolerant commented 2 years ago

Assuming this issue is sorted now, I'll close this but feel free to comment below if more help is needed

HorusApl commented 2 years ago

chc reload

[04:24:51 INFO]: [i] Reloading plugin's data, please wait..
[04:24:51 INFO]: ______________________________________________________________
[04:24:51 INFO]:   
[04:24:51 INFO]: Reloading plugin ChatControlRed v10.7.9
[04:24:51 INFO]:   
[04:24:51 INFO]: [PlaceholderAPI] Successfully registered expansion: chatcontrolred
[04:24:51 INFO]: !-----------------------------------------------------!
[04:24:51 INFO]: Error loading configuration in settings.yml!
[04:24:51 INFO]: Problematic section: Toggle
[04:24:51 INFO]: Problem: org.mineacademy.chatcontrol.lib.ReflectionUtil$MissingEnumException: The enum 'Toggle' does not contain 'timed' on MC v1_17_R1! Available values: mail, announcement, me, pm, chat (see below for more)
[04:24:51 INFO]: !-----------------------------------------------------!
[04:24:51 INFO]: ChatControlRed 10.7.9 encountered a MissingEnumException! Please check your error.log and report this issue with the information in that file.
[04:24:51 INFO]: ChatControlRed 10.7.9 encountered a MissingEnumException! Please check your error.log and report this issue with the information in that file.
[04:24:51 INFO]: org.mineacademy.chatcontrol.lib.ReflectionUtil$MissingEnumException: The enum 'Toggle' does not contain 'timed' on MC v1_17_R1! Available values: mail, announcement, me, pm, chat
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.ReflectionUtil.lookupEnum(ReflectionUtil.java:740)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.ReflectionUtil.lookupEnum(ReflectionUtil.java:614)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.SerializeUtil.deserialize(SerializeUtil.java:443)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlConfig.getList(YamlConfig.java:1123)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlConfig.getList(YamlConfig.java:1100)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlConfig.getSet(YamlConfig.java:1081)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig.getSet(YamlStaticConfig.java:419)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.settings.Settings.access$16000(Settings.java:49)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.settings.Settings$Toggle.init(Settings.java:681)
[04:24:51 INFO]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[04:24:51 INFO]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
[04:24:51 INFO]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[04:24:51 INFO]: at java.base/java.lang.reflect.Method.invoke(Method.java:567)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig.invokeMethodsIn(YamlStaticConfig.java:297)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig.invokeAll(YamlStaticConfig.java:271)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig.loadViaReflection(YamlStaticConfig.java:250)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig.access$000(YamlStaticConfig.java:47)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig$1.onLoadFinish(YamlStaticConfig.java:84)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlConfig.loadConfiguration(YamlConfig.java:344)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig.createFileAndLoad(YamlStaticConfig.java:335)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.SimpleSettings.load(SimpleSettings.java:41)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.settings.YamlStaticConfig.load(YamlStaticConfig.java:116)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.plugin.SimplePlugin.reload(SimplePlugin.java:668)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.command.ReloadCommand.onCommand(ReloadCommand.java:67)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.command.SimpleCommand.execute(SimpleCommand.java:396)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.command.SimpleCommandGroup$MainCommand.onCommand(SimpleCommandGroup.java:399)
[04:24:51 INFO]: at ChatControl-Red-10.7.9.jar//org.mineacademy.chatcontrol.lib.command.SimpleCommand.execute(SimpleCommand.java:396)
[04:24:51 INFO]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159)
[04:24:51 INFO]: at java.base/java.lang.Thread.run(Thread.java:831)
[04:24:51 INFO]: !-----------------------------------------------------!
[04:24:51 INFO]: Failed to load static settings class org.mineacademy.chatcontrol.settings.Settings
[04:24:51 INFO]: !-----------------------------------------------------!
[04:24:51 INFO]:   
[04:24:51 INFO]: Tutorial:
[04:24:51 INFO]: https://github.com/kangarko/ChatControl-Red/wiki
[04:24:51 INFO]:   
[04:24:51 INFO]: Get help:
[04:24:51 INFO]: https://github.com/kangarko/ChatControl-Red/issues
[04:24:51 INFO]:   
[04:24:51 INFO]: ______________________________________________________________
HorusApl commented 2 years ago

Tried what you suggested, and received this in response. Any ideas?

HorusApl commented 2 years ago
Config.yml ```yaml # !-----------------------------------------------------------------------------------------------! # Welcome to the main configuration of ChatControl # !-----------------------------------------------------------------------------------------------! # # For support and documentation, please visit: # - https://github.com/kangarko/ChatControl-Red/wiki # # !-----------------------------------------------------------------------------------------------! # # 1) COLOR CODES are supported with the '&' character. # - For usage, see http://minecraftwiki.net/wiki/Formatting_codes # - When you use them, place quotes around the message like this: "Hello &cworld." # - To use HEX colors, use #123456 syntax: "Hello #123456world." # # 2) TO HIDE any message, set it to 'none'. # # 3) For UNICODE CHARACTERS (smileys, symbols, ..), save the file in UTF-8 encoding. See # - https://github.com/kangarko/ChatControl-Red/wiki/Use-Right-Encoding # # 4) JSON is supported. # - For usage, see https://github.com/kangarko/ChatControl-Red/wiki/JSON # # 5) WHITELISTS can be turned into blacklists, by putting "@blacklist" on the first line. # - Doing such, filters will only apply for messages in those lists. # # PS: Everything above applies for all files in ChatControl/ folder. # # !-----------------------------------------------------------------------------------------------! # # ------------------------------------------------------------------------------------------------- # Settings controlling the main chat formatting. # # **IMPORTANT** You can force players to automatically join into channels on join using # permissions, see https://github.com/kangarko/ChatControl-Red/wiki/Channels#auto-join # ------------------------------------------------------------------------------------------------- Channels: # Should we format the chat and apply channels? Enabled: true # What commands should trigger our main channel command? # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'channel' - 'ch' # How many channels a player can read at once maximum? # You can override this in "Groups" section below. Max_Read_Channels: 3 # true = When you join a new channel for writing, we make you read your old channel. # false = When you join, we leave you from your old writing channel. Join_Read_Old: true # If you gave player permissions to automatically join a channel on join, and he decided to # leave it, should we remember his option and not join him to channel next time he logs in? Ignore_Autojoin_If_Left: false # Should we check channel autojoin permissions and join players the channels they should get # based on their autojoin permission on /chc reload? Autojoin_On_Reload: false # Save yourself from accidentally revealing you are online by disabling your ability to send # direct chat messages. You will need to use "/channel send" instead. Prevent_Vanish_Chat: false # The default console format unless overriden below. Does not support formats. # Set this to "default" in your channel settings to use the channel's format instead. Format_Console: '[{channel}] {player}: {message}' # The default Discord format unless overriden below. Does not support formats. # We automatically send messages to Discord channels that you have linked in the "Integration" # section below. To disable this per-channel, set Format_Discord to "none" for that channel. Format_Discord: '{player}: {message}' # A list of worlds where we will not format chat. Rules, antispam and filters will still be # appled and you can disable them by giving "chatcontrol.bypass.*" permission in that world. Ignore_Worlds: [] # Experimental flag to move some parts of sending chat messages off of the main thread. # Enable for performance boost while monitoring your server for a few days to ensure stability. Async: true # Channels are preconfigured public chat rooms where players can message each other. # You can add various keys and remove those you don't use, see this tutorial: # https://github.com/kangarko/chatcontrol-Red/wiki/Channels # # Channel options: # # - Format: The only mandatory option. Represents the style of the message # when sent into the channel. Either type the format directly such as # "{player}: {message}" there, or type the name of a Format from your formats/ folder, # such as "chat" if your format file is called chat.yml. Formats can have fancy # hoverable and clickable parts. # # - Format_Console: Overrides the console format from above. Set to "none" to hide or "default" # to use channel's formatting. # Warning: The only way to hide console log is to cancel the event, which may # conflict with DynMap or other plugins. Be careful hiding this! # # - Format_Discord: Overrides the discord format from above. To disable, do NOT use the Discord # option and we simply won't send messages to Discord. # # - Format_Spy: Overrides the spy format from the "Spy" section below. Set to "none" to hide. # # - Range: How far in blocks around player should others see the message? # To make the range per-world, set it to "*", otherwise set it to a number # such as "50" that would be 50 blocks around the sender. # Staff with chatcontrol.bypass.range permission will reach everyone on all worlds. # Players with chatcontrol.bypass.range.world will reach everyone on the same world # and linked worlds. # # - Range_Worlds: If "Range" is set to "*", which means everyone on world sees the message, # this is a list of worlds that are connected where players chat together. # # - Party: Makes the channel players only reach other players in the same party. This can work # together with Range, but does not require that option. # Available values: factions-faction, plotsquared-plot, towny-town, towny-nation, # mcmmo-party, towny-ally and lands-land # Warning: The Party option does not work over BungeeCord! # # - Message_Delay: This overrides Anti_Spam.Chat.Delay so you can chat chat delay per channel. # Put string values there like "5 seconds" or "1 minute" etc. # # - Bungee: true/false option. This overrides Integration.BungeeCord from below, so you can # disable BungeeCord message synchronization for some channels. # # - Discord_Channel_Id: a numeric ID of your Discord channel to link this channel with, see: # https://github.com/kangarko/ChatControl-Red/wiki/Discord # # - Cancel_Event: true/false option. Set to true if you want this channel to be hidden from DynMap # or other plugins. You may need adjusting this: # https://github.com/kangarko/ChatControl-Red/wiki/Listener-Priorities # List: standard: Format: chat Format_Spy: '&7[Global]&r' Format_Console: '[Global] {player} {message}' admin: Format: admin-chat Format_Console: '[Staff {player}] {message}' local: Format: local-chat Range: 400 Format_Spy: '&7[Local]&r' Format_Console: '[Local] {player} {message}' # ------------------------------------------------------------------------------------------------- # Prevent flooding the chat with junk / repetitive messages. # ------------------------------------------------------------------------------------------------- Anti_Spam: # true = Similarity checks below used in chat and commands will compare two messages with their # diacritical marks removed (such as á is turned into a) - THIS MAY BREAK RUSSIAN and other # languages but prevents bypassing similarity filter for English and European servers Similarity_Ignore_Accents: true # Settings applied to chat: Chat: # How many seconds must the player wait between each message? Set to 0 to disable. Delay: 0 seconds # Block repetitive messages if they are similar to the previous one, in percent. # Set to 0% to disable. Similarity: 0% # The amount of previous messages to check. Prevents spam like this: # t # lol # t # lol # Since this uses the Similarity key above it only works if Similarity is not disabled. Similarity_Past_Messages: 2 # The threshold after which we will forgive the player for writing the same message. Similarity_Time: 10 seconds # Regular expressions that, if match the message, will prevent delay check from applying. Whitelist_Delay: [] # Regular expressions that, if match the message, will prevent similarity check from applying. Whitelist_Similarity: - '^hello \w+$' - '^hey \w+$' - '^hi \w+$' # Limit how many messages the player can send in the given period, # for example you can restrict sending maximum 5 messages in the last 10 seconds. # This works differently then the delay check above because players # can type their messages rapidly after each other as long as the total number # of messages within the period is lower than the limit. Limit: # The period to check. Set to 0 to disable. Period: 0 seconds # How many messages can players send maximum in the period above? Max_Messages: 4 # Block players repeating what others said. Parrot: # Enable this feature? Enabled: false # When scanning for others' messages, only take in account messages newer than this period: Delay: 1 second # How similar must the message be (in percent from 0% to 100%) to be blocked? Similarity: 85% # Regular expressions that, if match the message, will prevent parrot check from applying. # By default allow players repeating "hello/hey/hi" and/or with using another player's name. Whitelist: - '^(hello|hey|hi)( \w+|)(!|)$' # Settings applied to commands: Commands: # How many seconds must the player wait between each command? Set to 0 to disable. Delay: 0 seconds # Block repetitive commands if they are similar to the previous one, in percent. # Set to 0% to disable. Similarity: 0% # Amount of previous commands to check. Example: Setting this to 2 prevents spam like this: # /tell Notch lol # /tell Notch t # /tell Notch lol # /tell Notch t # Since this uses the Similarity key above it only works if Similarity is not disabled. Similarity_Past_Commands: 1 # The threshold after which we will forgive the player for running the same command. Similarity_Time: 10 seconds # Commands the player can type bypassing the Delay above. We check the command label # so if you put "/tell" there, "/tell ANYTHING" will be matched. # # Whitelist_Delay: # - /spawn # - /hello Whitelist_Delay: [] # Commands the player can type bypassing the Similarity above. We check the command label # so if you put "/tell" there, "/tell ANYTHING" will be matched. # # Whitelist_Similarity: # - /tell # - /pm # - /t # - /w # - /r Whitelist_Similarity: - '/tag' - '/nick' # Limit how many commands the player can send in the given period, # for example you can restrict sending maximum 5 commands in the last 10 seconds. # This works differently then the delay check above because players # can type their commands rapidly after each other as long as the total number # of commands within the period is lower than the limit. Limit: # The period to check. Set to "0 seconds" to disable. Period: 0 seconds # How many messages can players send maximum in the period above? Max_Commands: 4 # ------------------------------------------------------------------------------------------------- # Prevent messages written in BIG LETTERS. # ------------------------------------------------------------------------------------------------- Anti_Caps: # Should we enable this feature in chat? To disable this in commands, see the next key. Enabled: false # List of commands checked for capitalization. Set the list to [] to disable this feature. # [TIP] To enable anti-caps everywhere, set the list to ["*"] Enabled_In_Commands: - '/tell' - '/w' - '/m' - '/t' - '/pm' - '/message' - '/msg' - '/whisper' - '/mail' - '/reply' - '/r' - '/me' # How many letters must the message contain to trigger this check? Min_Message_Length: 5 # How much percent of the message must be CAPITALIZED to trigger this check? Min_Caps_Percentage: 50 # How many capitalized letters must appear after each other to trigger this check? # This is IRRESPECTIVE of the caps percentage setting above. Those two settings are # evaluated "this, or that" so if one of the two conditions are true, the anti-caps fires. Min_Caps_In_A_Row: 5 # Allow the following words to be capitalized. Whitelist: - 'OMG' - 'LOL' - 'WTF' - 'WOW' - 'ROFL' # ------------------------------------------------------------------------------------------------- # Reduce impact of spamming bots. # ------------------------------------------------------------------------------------------------- Anti_Bot: # Block chatting until the player has moved? Block_Chat_Until_Moved: true # A list of commands to block until the player has moved. # # There are three ways of configuring this. # # 1) Set this to ["*"] to block all commands (don't do this if you have a login plugin) # # 2) Set this to a list of commands to block, others will be allowed: # Block_Commands_Until_Moved: # - /afk # - /me # # 3) Put @blacklist on the first line then commands. Only these commands will be allowed# # and we block all other commands until player has moved. # Block_Commands_Until_Moved: # - "@blacklist" # - /login # - /register # - /reg # - /l Block_Commands_Until_Moved: [] # Prevent placing two signs with the same text. Blocks "AutoSign" hack where the hack client # automatically places a sign with the same text just by right clicking with it. Block_Same_Text_Signs: false # Filter bad player names from entering your server. Supports regular expressions. Example: # Disallowed_Usernames: # - '(f+(\W|\d|_)*u+(\W|\d|_)*c+(\W|\d|_)*k+(\W|\d|_)*)' # - bitch # - asshole Disallowed_Usernames: - 'Notch' # Control how fast the player can do certain actions. Cooldown: # How many seconds the player needs to wait before logging in again? Example: 4 seconds Rejoin: 0 seconds # How many seconds must the player wait after login to chat? Chat_After_Login: 0 seconds # How many seconds must the player wait after login to run commands? Command_After_Login: 0 seconds # If within the given time a certain amount of players join, AND at least the given # amount of their last messages is equal, run a specific command such as a kick. # # Useful to prevent bots who mass-join and spam the same messages. Join_Flood: # Enable this feature? Enabled: true # What is the amount of time we monitor for last joins? Join_Threshold: 15 seconds # How many players within the interval above must sent the same message to the chat? Min_Players: 3 # If all three conditions above match, run the following commands. Replace {player} with your player name. Commands: - '/kick {player} You''ve been kicked because your ''{message}'' message matched what {player_amount} player(s) wrote in {threshold}.' # ------------------------------------------------------------------------------------------------- # Limit what commands players can auto-complete using TAB # ------------------------------------------------------------------------------------------------- Tab_Complete: # Enable this feature? Enabled: false # Prevent completions for words shorter that the given amount of letters. # **On Minecraft older than 1.13 this only works properly on the first command argument.** Prevent_If_Below_Length: 0 # What commands should we prevent from being tab-completed? Uses regular expressions. # [TIP] This is turned into blacklist by default, see header of this configuration. Whitelist: - '@blacklist' - '(/ver|/version)\b' - '(/pl|/plugins)\b' - '/hiddenCommand' # ------------------------------------------------------------------------------------------------- # Correct player's grammar. # ------------------------------------------------------------------------------------------------- Grammar: # Punctualize every sentence (insert a dot at the end) longer than the given letters. # Set to 0 to disable. We recommend setting this to 5. Insert_Dot_Message_Length: 0 # Capitalize sentences (make the first letter uppercased) longer than the given letters. # Set to 0 to disable. We recommend setting this to 5. Capitalize_Message_Length: 0 # ------------------------------------------------------------------------------------------------- # Rules are user-defined filters that catch messages based on regular expressions. # See "rules/" folder for configuration and examples. # ------------------------------------------------------------------------------------------------- Rules: # Where should the rules be applied to? # [TIP] You can import rules from other files by writing @import in your .rs files. # Options: chat, command, packet, sign, book, anvil, tag Apply_On: - 'chat' - 'command' - 'packet' - 'sign' - 'book' - 'anvil' - 'tag' # Print the '*--------- Rule match (X) for Y ---------' messages into the console? # [TIP] You can hide this per-rule using the "dont verbose" operator. Verbose: true # Remove colors from checked messages? Prevents bypasing filters by using colors: fu&cck. # [WARNING] This will remove all custom colors in the message in case it is filtered! # TURNING THIS OFF will break packet rules and make players able to bypass rules by using colors. # LEAVING THIS ON will break "then replace" if the replaced message contains colors. Strip_Colors: false # Replace accents before matching? Such as "dáma" to "dama" or "gjøre" to "gjore" etc. # This is applied against the "match" operator. # # [IMPORTANT] If this is enabled, DO NOT USE accents in your rules because using them will break # the rule. Only put "match dama" or "match gjore" and all "dama", "dáma" and "gjøre" and "gjore" # will automatically be matched for you. Strip_Accents: false # Evaluate the "match" operator in rules/ case insensitively? Poses slight performance penalty. # NB: When testing on regex101.com make sure you toggle "insensitive" and "unicode" flags # when testing expressions to get accurate results: https://i.imgur.com/QEDZx5N.png Case_Insensitive: false # Prevent regular expressions from rules and messages freezing the server if they take # more time than the amount specified below, in milliseconds. # IF THE FIRST MESSAGE AFTER PLUGIN'S RELOAD TRIGGERS A RULE THIS MAY HAPPEN, IT'S NORMAL Regex_Timeout_Ms: 500 # ------------------------------------------------------------------------------------------------- # Private messages allow players to privately message one another. # ------------------------------------------------------------------------------------------------- Private_Messages: # Should we enable this feature? Enabled: true # Send message as an advancement (requires Minecraft 1.12+)? # [IMPORTANT] This causes a performance penaulty visible in timings because Toasts must be # sent on the main server thread (otherwise your data in world/ folder(s) may be get corrupted) Toasts: false # Format: sound_name, volume (float, from 0.0F to 1.0F), pitch (float, from 0.0F to 1.0F) # For all available sounds, see https://mineacademy.org/sounds # Set to "none" to disable Sound: ENTITY_CHICKEN_EGG 1F 1.5F # If you type /tell we turn automode for you, so chat messages will go to their inbox. # If you stop typing after the given amount of time, we automatically disable automode, if any. Auto_Mode_Leave_Threshold: 5 minutes # The tell command aliases. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Tell_Aliases: - 'tell' - 'w' - 'm' - 't' - 'pm' - 'message' - 'msg' - 'whisper' # The reply command aliases. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Reply_Aliases: - 'reply' - 'r' # Format used in private messages for sender. Format_Sender: pm-sender # Format used in private messages for recipient. Format_Receiver: pm-receiver # Format for Toasts. Maximum 2 lines and each line is trimmed to 21 letter width automatically. # Use | instead of \n as line separator. Format_Toast: '&7PM from &6{sender}:|&f{message}' # Format for message which will be sent to console. Leave empty to disable. Format_Console: '[pm] {sender} -> {receiver}: {message}' # ------------------------------------------------------------------------------------------------- # Represents settings for player messages such as join, quit, death and timed messages # ------------------------------------------------------------------------------------------------- Messages: # What aspects of messages should be enabled? # Options: join, quit, kick, death, timed # # If you have another plugin handling join/quit etc. messages, remove them from list below. # If you want to hide those messages, leave them in Apply_On and empty your messages/ .rs files. Apply_On: - 'timed' - 'death' - 'join' - 'quit' # Files in messages/ folder are read from top to bottom. A true value means that if you have # multiple messages there, we only send the first eligible message to the player (we evaluate # this for each player separatedly). A false value means players will see all messages # that are eligible for them. Stop_On_First_Match: true # Automatically append prefix to messages of the given type. Edit/remove/add sections below # from Apply_On key above to the left, and prefix to the right. # The message types that you do not specify below, will have no prefix unless specified # individually. You can also disable prefix for some messages by writing "prefix none" there. # # Example: # Prefix: # join: "&8[&2+&8] &7" # quit: "&8[&4-&8] &7" # kick: "&8[&4-&8] &7" # death: "&8[&4x&8] &7" # timed: "{announce_prefix}" Prefix: timed: '&x&f&f&d&7&0&0&lEC&r &7&o>>&r ' # Broadcast messages automatically to your Discord. # Put the types from Apply_On above to the left, and the Discord channel ID to the right. # # Example: # Discord: # join: 753251852451053598 Discord: # If you want to display join message after other plugins, you can send it # a bit later such as 1 tick later than the other messages. # **YOU CANNOT OVERRIDE THIS WITH THE "DELAY" OPERATOR** Defer_Join_Message_By: 1 tick # The default broadcast delay. You can override this for each broadcast with the "delay" operator # as long as it is above this limit. Timed_Delay: 10 seconds # Experimental option to move some message processing off of the main thread. DO NOT USE if you # use any world or data modification operators such as "require region" or javascripts that # save/load data, chunks, worlds. Some variables will also not load properly. # # Will improve performance if you've got tons of player messages or flashing them rapidly. # # Async quit and kick messages will BREAK variables because the player has already disconnected! # # Example: # Async: [join, quit, kick, death, timed] Async: [] # ------------------------------------------------------------------------------------------------- # Represents settings for letting players use colors in their chat or select a custom color. # # You must give players the following permissions for them to be able to use colors: # - chatcontrol.color.{color} (replace color with color name such as "red) # - chatcontrol.hexcolor.{color} (replace color with the hex code such as "ccdd44") # - chatcontrol.guicolor.{color} (replace color with color names, used in /chc color menu) # - chatcontrol.use.color.{apply_on} (replace apply_on with options below) - Let players write & # colors and hexcodes to places in Apply_On below. true by default # ------------------------------------------------------------------------------------------------- Colors: # Where should we let players to use & or RGB color codes? # Options: chat, me, prefix, nick, suffix, private_message Apply_On: - 'chat' - 'me' - 'prefix' - 'nick' - 'suffix' - 'private_message' # ------------------------------------------------------------------------------------------------- # Allow players to mention others in the chat: Hello @kangarko! # and play a sound to the player who is mentioned. # ------------------------------------------------------------------------------------------------- Sound_Notify: # Should we enable this feature? Requires channels. Enabled: true # The time before they player can use this feature again? Cooldown: 30 seconds # Only allow mentioning afk players? Uses Essentials. Require_Afk: false # Only mention when the player's name starts with the specific character. # Example: 'Hello @kangarko, are you there?' Set to '' to always allow. Require_Prefix: '@' # Format: sound_name, volume (float, from 0.0F to 1.0F), pitch (float, from 0.0F to 1.0F) # For all available sounds, see https://mineacademy.org/sounds # Set to "none" to disable Sound: ENTITY_CHICKEN_EGG 1F 1.5F # Highlight the name of the notified player. Set to "" to disable. # You can create individual colors by using Sound_Notify_Color key in the "Groups" section. Color: '&a' # ------------------------------------------------------------------------------------------------- # A /me is a command allowing you to broadcast your message in a different way then chat. # ------------------------------------------------------------------------------------------------- Me: # Should we enable this feature? Enabled: false # What commands will invoke the me feature? # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'me' # The format used in the command. You can type the format here or reference to one in formats/. Format: '&7* &o{player_name} {message}' # ------------------------------------------------------------------------------------------------- # A /list is a command to list players on this server and across your BungeeCord network. # ------------------------------------------------------------------------------------------------- List: # Should we enable this feature? Enabled: false # What commands will invoke the list feature? # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'list' - 'ls' - 'l' # The format - This does NOT support formats/ and has limited variables: # {count}, {player_name}, {player_nick}, {player_server}, {player_is_afk}, {player_is_vanished} # {player_group}, {player_prefix} {player_channels} Format: ' &7{count}. &f{player_name}' Format_Hover: - '&7Server: &f{player_server}' - '&7Nick: &f{player_nick}' - '&7Vanished: &f{player_is_vanished}' - '&7Channels: &f{player_channels}' # By what should we group players in the command? # Available: name, nick, prefix, group (prefix & group are pulled from your permissions plugin) Sort_By: group # ------------------------------------------------------------------------------------------------- # Ability to ignore chat and private messages from certain players. # ------------------------------------------------------------------------------------------------- Ignore: # Should we enable this feature Enabled: false # true = hide messages from players you ignore or if they ignore you, and disallow PMing players # that you ignore (useful to prevent trolling) # false = only hide messages from players you ignore Bidirectional: false # The commands that invoke the ignore feature. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'ignore' - 'ig' # Hide chat messages from ignored players? Hide_Chat: true # Prevent players you ignore from private messaging you? Stop_Private_Messages: true # ------------------------------------------------------------------------------------------------- # Stop people from writing to the chat with the "/mute" command. # ------------------------------------------------------------------------------------------------- Mute: # Should we enable this feature? Enabled: false # true = sends "Player X has been muted" message to everyone, # false = only sends it to executing player and the offender Broadcast: true # The commands that invoke the mute feature. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'mute' # If the server is muted, which commands should we disable? Prevent_Commands: - '/tell' - '/w' - '/m' - '/t' - '/pm' - '/message' - '/msg' - '/whisper' - '/mail' - '/reply' - '/r' - '/me' # Should we deny writing to the books? Prevent_Writing_Books: true # Should we deny placing signs? Prevent_Placing_Signs: true # Should we hide join messages? Hide_Join_Messages: true # Should we hide quit messages? Hide_Quit_Messages: true # Should we hide death messages? Hide_Death_Messages: true # true = hide death/join/quit messages only from players who lack chatcontrol.bypass.mute perm # useful if your staff still want to receive gameplay messages from muted players Soft_Hide: false # ------------------------------------------------------------------------------------------------- # Welcome players to the server with a custom message when they join. # ------------------------------------------------------------------------------------------------- Motd: # Should we enable this feature? Enabled: true # How long to wait to show motd on join? Delay: 0 ticks # The commands that manually show the motd to the player. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'motd' - 'news' # What message is sent to the player on login? This is fetched from formats/. Format_Motd: motd # What message is sent when the player joins for the first time. Format_Motd_First_Time: motd # What message is sent when the player is a newcomer? See the "Newcomer" section for settings. Format_Motd_Newcomer: motd # Format: sound_name, volume (float, from 0.0F to 1.0F), pitch (float, from 0.0F to 1.0F) # For all available sounds, see https://mineacademy.org/sounds # Set to "none" to disable Sound: ENTITY_FIREWORK_LAUNCH 1F 0.1F # Commands to run. They will only be run when player joins and not in /motd or any other way. Commands: # Commands to run as the console such as /teleport {player} X Y Z Console: [] # Commands to run as player such as /me {player} has logged to the game! Player: [] # ------------------------------------------------------------------------------------------------- # Announce important messages with the "/chc announce" command. # You can customize the format in localization. # # TIP: Use {receiver} variable in the message to replace it to each player's name! # ------------------------------------------------------------------------------------------------- Announcer: # Sound played when sending chat message announcements. # Format: sound_name, volume (float, from 0.0F to 1.0F), pitch (float, from 0.0F to 1.0F) # For all available sounds, see https://mineacademy.org/sounds. Set to "none" to disable # Set to "none" to disable Chat_Sound: ENTITY_ARROW_HIT_PLAYER 1.0F 0.1F # ------------------------------------------------------------------------------------------------- # Send players post even when they are offline. # ------------------------------------------------------------------------------------------------- Mail: # Should we enable this feature? Enabled: true # The commands that invoke the mail command. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'mail' - 'email' - 'post' - 'gmail' # ------------------------------------------------------------------------------------------------- # Set yourself a nick, a prefix or a suffix. # [TIP] Admins can use the /chc tag commands to list all nicks or manage other players. # ------------------------------------------------------------------------------------------------- Tag: # Where should we enable this feature? # Leave empty to completely disable custom prefixes, nicks and suffixes. # # **IMPORTANT** Remove "nick" there if you use another nicks plugin such as Nicky or CMI. # However, we only offer limited support for these plugins now using the {nick} variable. # # PS: If you want to type /nick instead of "/tag nick" to invoke this command, see rules/command.rs # file (line 85 by default) and comment the two command rules for this alias. # # Available options: prefix, nick, suffix Apply_On: [] # The commands that invoke the tag command. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'tag' # The max allowed length for a nick? (Colors are not counted) Max_Nick_Length: 10 # Optional prefix to be forced before a player's nick like "~". # This will also work when you use Essentials or CMI for nicks instead of our own system. Nick_Prefix: '' # Prevent players from setting nicknames that equal to a real player username? Nick_Disable_Impersonation: true # true = alter player's displayname (not used by us but other plugins can see this) and custom name # false = only changes player's tab list name if enabled in Tab_List Change_Displayname: true # ------------------------------------------------------------------------------------------------- # Allow players to look up the nick/real name of other players by their name/nick. # Requires Tag.Apply_On having "nick" inside. # ------------------------------------------------------------------------------------------------- Real_Name: # The commands that invoke the tag command. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'realname' - 'realn' - 'rn' # ------------------------------------------------------------------------------------------------- # Customize your tab list # ------------------------------------------------------------------------------------------------- Tab_List: # Change the tablist for players? Enabled: false # The format of the tab list Format: '{player_prefix+}{player_nick}' # ------------------------------------------------------------------------------------------------- # Toggle seeing parts of the plugin - disable private messages, timed broadcasts, join messages etc # ------------------------------------------------------------------------------------------------- Toggle: # Where should we enable this feature? # Available: chat, mail, announcement, me, pm # # Leave empty to completely prevent players from disabling all of these features. Apply_On: - 'announcement' - 'timed' # The commands that invoke the toggle command. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'toggleall' - 'broadcastoff' # ------------------------------------------------------------------------------------------------- # Spying allows to see messages, commands, private messages, books, renamed items and more # from other players. Talking about privacy rights! # # [TIP] Give staff chatcontrol.spy.autoenable permission to auto enable spy on join. # ------------------------------------------------------------------------------------------------- Spy: # Where should we enable this feature? # Options: chat, command, private_message, mail, sign, book, anvil Apply_On: - 'chat' - 'command' - 'private_message' - 'mail' - 'sign' - 'book' - 'anvil' # What prefix should we display before all formats below? # You can disable this per-format by prepending it with "@noprefix" Prefix: '&8[&7&lSpy&8] &7' # The commands that invoke the spy command. # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS Command_Aliases: - 'spy' # Format used to spy chat messages. By default, we use the "spy.yml" format from formats/ folder. # Exclude prefix from above since we already have a custom one in the "spy" format that we use. # You can override this per-channel by writing "Format_Spy" key to your channel keys above. Format_Chat: '@noprefix spy' # Format used to spy party chat messages (from plugins such as mcMMO or TownyChat). # See Format_Chat above for more help. You cannot however, use the Format_Spy option since # this channel does not exists in ChatControl. Format_Party_Chat: '@noprefix spy-party' # Format used to spy commands. Format_Command: '&7{player}: &7{message}' # Format used to spy private messages. Format_Private_Message: '&7{sender} &8-> &7{receiver}: &f{message}' # Format used to spy mails. Format_Mail: spy-mail # Format used to spy signs. Format_Sign: spy-sign # Format used to spy books. Format_Book: spy-book # Format used to spy renamed items. Format_Anvil: spy-anvil # List of commands we should spy. Mail and PMs are spied using their own method. You can use # the @blacklist feature as described in the header of this file. # # We only evaluate the list against the command label such as "/tell", meaning anything later # in the command does not matter! "/tell kangarko ahoj" -> only "/tell" will be matched # TO DISABLE SPYING ON COMMANDS, SET THIS TO [] OR REMOVE "command" FROM Apply_On SETTING ABOVE Commands: - '@blacklist' - '/register' - '/reg' - '/login' - '/l' # ------------------------------------------------------------------------------------------------- # Apply different the settings from this file for people with certain permissions. # See https://github.com/kangarko/ChatControl-Red/wiki/Groups for a quick tutorial. # # You can create and remove sections below as you wish. Then give chatcontrol.group.
# permissions and the options for that sections will apply for people with that permission. # Example: people with chatcontrol.group.admin permission will have no chat message delay. # # Available options with their example values: # Max_Read_Channels: 1 # Message_Delay: 2 seconds # Message_Similarity: 50% # Command_Delay: 3 seconds # Command_Similarity: 50% # Rejoin_Cooldown: 4 seconds # Sound_Notify_Color: "&6" # ------------------------------------------------------------------------------------------------- Groups: admin: Message_Delay: 0 seconds # ------------------------------------------------------------------------------------------------- # Give player warning points for violating rules/actions. # Warning points are groupped into "sets" that contain different actions based on # how many points the player has accumulated. # ------------------------------------------------------------------------------------------------- Warning_Points: # Enable this feature? Enabled: false # Automatically take away warning points gradually? Warning points are saved for offline players # but they are only taken away when the player is online. Reset_Task: # The delay between taking points. Set to 0 to never take points automatically. Period: 10 minutes # How much points to take from different sets. Specify a set name and how many points to take. # To configure sets, see below. # You can write your own "set: points" keys below! Remove: global: 2 spam: 1 fastmessages: 1 # How many points to to give on certain events? The first part of the value is the set name, # such as "fastmessages" (see below). See Anti_Spam and Anti_Caps sections above to configure # when these should be triggered. Triggers: # Player wrote message too quickly. Chat_Delay: fastmessages 3 - {remaining_time} # Player wrote too similar messages after each other. # {similarity_percentage_double} means the % of similarity between the current message and the # previous one from 0.0 to 1.0 Chat_Similarity: spam 4 * ({similarity_percentage_double} / 2) # Player wrote too many messages in a given time limit. # You can also use the {messages_in_period} variable to get the messages sent in the given period Chat_Limit: fastmessages 2 # Player typed commands too quickly. Command_Delay: fastmessages 3 - {remaining_time} # Player typed too similar commands after each other. # The {similarity_percentage_double} means the % of similarity between the current command and # the previous one. Command_Similarity: spam 4 * ({similarity_percentage_double} / 2) # Player typed too many commands in the given limit (see Anti_Spam section above). Command_Limit: fastmessages 3 # Player wrote messages containing too many BIG LETTERS (see Anti_Caps section above). Caps: spam 4 * ({caps_percentage_double} / 2) # Warning points are groupped into "sets" that contain different actions based on # how many points the player has accumulated. # Each set contains trigger points such as 5, with a list of commands/actions to run # when the player is given points from above and they match or exceed the highest set trigger, # # Example in global set: When player has 15 points and gets 5 more, we'll trigger the actions on # 15 points. # # You can write or remove sections below and add new trigger points at your will! Sets: global: 3: - 'warn &7You must obey the &2rules &7else you will be &4punished&7.' 10: - 'warn &c**** &lHey &c{player} ****' - 'warn &7-> &cThis is your &6final &cwarning!' 30: - 'kick {player} &cKicked for breaking the rules' swear: 3: - 'warn &cYou have received first warning for swearing.' 6: - 'warn &cPlease do not swear, otherwise an action will be taken!' 8: - 'kick {player} &cInappropriate language (last warning)' spam: 6: - 'warn &cPlease do not act like a spammer.' 10: - 'warn &cPlease do not spam, otherwise you will be banned.' 12: - 'kick {player} &cSpamming the chat (last warning)' fastmessages: 8: - 'warn &cPlease slow down chat messages.' 12: - 'warn &cSlow down chat, otherwise you will be banned.' 16: - 'kick {player} &cSlow down chat (last warning)' # ------------------------------------------------------------------------------------------------- # Apply chat rules differently for new players on your server. # ------------------------------------------------------------------------------------------------- Newcomer: # How much time must a player spend on the server to no longer be considered as a newcomer? # This is NOT the first time player joined, but the actual time he spent on your server. # Set to 0 to disable this feature, or set a time like "1 hour" in human readable format Threshold: 0 minutes # In which worlds should we enable this feature? Useful when you have a newbie world. # Example: [survival, nether, end]. Set to ["*"] to enable in all worlds. Worlds: - '*' # What permissions should newcomers obtain when they join? # You can append " - false" at the end of the permission to give a negative permission instead. Permissions: - 'chatcontrol.group.newcomer' - 'chatcontrol.spy.autoenable - false' # Multiplier for points that newcomers receive. Warning_Points_Multiplier: 2.0 # Prevent newcomers from seeing chat messages? Restrict_Seeing_Chat: false # Writing to chat restrictions: Restrict_Chat: # Block newcomers from chatting ? Enabled: false # What messages should we allow anyways? Case-insensitive. Split by ", ". Example: [quit, end] # This is matched as "equals", no regular expressions. The message must be "equal ignore case" # one of the lines below to go through else it will be blocked. Whitelist: [] # Command restrictions: Restrict_Commands: # Block newcomers from running any command? Enabled: false # What commands should be disallowed from being run? We check only the label such as "/tell" # By default this is reversed so players can only run the commands below. Whitelist: - '/login' - '/l' - '/register' - '/reg' - '/helpop' - '/help' - '/?' # ------------------------------------------------------------------------------------------------- # Save game events to see what happened while you were offline. # If you have MySQL enabled, these logs will go directly to your database. # ------------------------------------------------------------------------------------------------- Log: # What player actions should be logged? # Options: chat, command, private_message, mail, sign, book, anvil Apply_On: - 'chat' - 'command' - 'private_message' - 'mail' - 'sign' - 'book' - 'anvil' # The threshold after which we should clean the logs Clean_After: 90 days # Commands that will be saved along with the chat messages. To log all, set it to ["*"] # The Apply_On list must contain "command" for any commands below to be logged. Command_List: - '/tell' - '/w' - '/m' - '/t' - '/pm' - '/message' - '/msg' - '/whisper' - '/mail' - '/reply' - '/r' - '/me' - '/tag' - '/nick' # ------------------------------------------------------------------------------------------------- # Remove unwanted messages from the console. # ------------------------------------------------------------------------------------------------- Console_Filter: # Should we enable this feature? *DOES NOT SUPPORT RELOAD* *MAY BREAK YOUR MULTICRAFT PANEL* Enabled: false # Remove these messages from console using the "contains" method. # Does not need to be whole message, just a part of the message you want to block. # # [NOTICE] If you have Multicraft, DO NOT place the following messages there else # your server will literaly stop working properly. This is a bug in Multicraft. # - UUID of player # - lost connection Messages: - 'Reached end of stream for' - 'Connection reset' # ------------------------------------------------------------------------------------------------- # Third party plugin integration # ------------------------------------------------------------------------------------------------- Integration: # Integration with AuthMe. AuthMe: # If true, we only show player join message (if you have "join" in Messages.Apply_On) once # the player logs in using AuthMe. Delay_Join_Message_Until_Logged: false # Only display the quit message if the player was logged in? Prevents quit message spam. # [TIP] To disable join message, enable 'delayJoinMessage' in AuthMe's configuration. Hide_Quit_Message_If_Not_Logged: true # Integration with BungeeCord. BungeeCord: # Hook to BungeeCord? **Requires BungeeControl Red** # [IMPORTANT] Change your server-name key in server.properties first (make this key unique # for each server) Enabled: false # The optional prefix before all messages so that you know where they are coming from. Prefix: '&8[&dBungee/{bungee_server_name}] ' # Integration with ProtocolLib. ProtocolLib: # Controls tab-completion, packet rules, deleting messages, book filtering and a few other things. # Disable if using ViaVersion, ProtocolSupport or some weird Spigot fork and getting kicked out # or having any issues. Listen_For_Packets: true # Prevent hacked clients editing and signing invalid books. # 1) Replace accents and remove unicode except colors and Cyrillic. # 2) Limit max pages to 100 and letters per page to 500 # Requires Minecraft 1.13, but if you get "Unsupported client packet in current Minecraft.." # message in the console, it is incompatible with your server. Book_Anti_Crash: false # Integration with DiscordSRV. Discord: # Enable all integration with DiscordSRV? Enabled: false # Should we apply anti-spam, anti-caps, rules and other filtering features? # Only works if Send_Messages_As_Bot is enabled, see below. Filter_Chat: true # Should we remove smileys from incoming messages from Discord? Recommended as the Minecraft # client cannot show many characters so they can show as [] or even kick players. Remove_Emojis: true # Beta: Send player channel messages through the webhook feature of Discord? Webhook: false # Discord does not let us edit messages, so we must remove the original message and resend # it as the bot. You will see your message disappear and reappear in a second or less. # true = messages are sent as bot (username icons not visible) # false = we do not edit your discord messages (warning: this breaks antispam, rules and # removing messages on discord) Send_Messages_As_Bot: true # If using BungeeCord: Set this to true if you want other servers on network which # do not have DiscordSRV installed but their channels have Discord & Bungee enabled to # forward the message to this server and use this server's DiscordSRV plugin to send # it to Discord. Only set this to true for 1 server on your network that has DiscordSRV # installed to avoid duplication. # # TO AVOID DUPLICATED MESSAGES, ONLY INSTALL DISCORDSRV ONE 1 SERVER ON YOUR NETWORK # Forward_From_Bungee: false # Integration with TownyChat TownyChat: # A list of channels where our spy feature is enabled. Put "@blacklist" on the first line # to turn into a blacklist, so that channels here will be excluded from spying. Spy_Channels_Whitelist: - '@blacklist' # ------------------------------------------------------------------------------------------------- # Show important informational messages such as what channels players is joining into, etc. ? # # DO NOT disable this unless you have been using ChatControl Red for a few weeks otherwise you # will miss out and then waste time reading our Wiki and opening tickets where things could easily # be explained simply by reading the console. # # If you want to disable "*--------- Rule match" messages, set Rules.Verbose to false. # # False also remove links to Wiki and Issue Tracker from the console when the plugin starts. # ------------------------------------------------------------------------------------------------- Show_Tips: true # ------------------------------------------------------------------------------------------------- # Enable this before you want to create regions with "/chc region". Then disable this for maximum # performance. Leaving this on will make plugin check every online player's click and compare # it to determine if he clicked with our tool, which has a performance penaulty. # # Your regions will continue to function with this option disabled. # ------------------------------------------------------------------------------------------------- Register_Tools: false # ------------------------------------------------------------------------------------------------- # If you use a large format with tons of variables, especially with the [item] variable and the # item has a long lore, Minecraft may not handle it properly and kick players in a loop. We can # detect this and remove all hover/click events from such message. # ------------------------------------------------------------------------------------------------- Strip_Oversized_Json: true # ------------------------------------------------------------------------------------------------- # The format used in the {timestamp} placeholder (google "Java timestamp format" for options). # ------------------------------------------------------------------------------------------------- Timestamp_Format: dd.MM.yyyy HH:mm:ss # ------------------------------------------------------------------------------------------------- # Advanced: Affects the order in which we format and check the chat. No need to touch. # See: https://github.com/kangarko/ChatControl-Red/wiki/Listener-Priorities # # Plugins which may require changing priority of Formatter: FactionsChat, BanManager # and WorldGuard. Visit the article above for help on how to configure. # # NB! DO NOT RELOAD WHEN CHANGING THIS - DO NOT RELOAD WHEN CHANGING THIS - DO NOT RELOAD... # ------------------------------------------------------------------------------------------------- Chat_Listener_Priority: HIGH # ------------------------------------------------------------------------------------------------- # What commands should trigger the main plugin command? # # If you have ChestCommands or another plugin with same commands, simply remove or rename ours. # * THE FIRST ALIAS IS THE MAIN LABEL, PLEASE DO NOT REMOVE IT. * # ------------------------------------------------------------------------------------------------- Command_Aliases: - 'chc' - 'chatcontrol' # ------------------------------------------------------------------------------------------------- # What language should we use for messages? If it exists, the language file will be copied # to your messages/ folder where you can edit it. # See tutorial here: https://github.com/kangarko/ChatControl-Red/wiki/Localization # # Available: en (English) and fr (French) # ------------------------------------------------------------------------------------------------- Locale: en # ------------------------------------------------------------------------------------------------- # The prefix used in front of most chat or console messages. You can manually use it with # {plugin_prefix} variable anywhere. # ------------------------------------------------------------------------------------------------- Prefix: '&8[&cChat&8]&7 ' # ------------------------------------------------------------------------------------------------- # How we should look up player data? # # true = look up and save player data by their Mojang unique ID (recommended on online servers) # false = use player names to save and load player data (recommended on offline servers) # ------------------------------------------------------------------------------------------------- UUID_Lookup: true # ------------------------------------------------------------------------------------------------- # Clear data.db for players that had not logged in for longer period that that. # Set to 0 to disable. # ------------------------------------------------------------------------------------------------- Clear_Data_If_Inactive: 90 days # ------------------------------------------------------------------------------------------------- # We store temporary player data such as their last message (used for antispam) even after they # disconnect. Set this to true to clear it (recommended for hub servers with many players # reconnecting so that it will save memory). The downside is that some checks will reset on quit. # ------------------------------------------------------------------------------------------------- Clear_Cache_On_Disconnect: false # ------------------------------------------------------------------------------------------------- # Time of some plugin's operations is measured. Print a message to the console if they take # over the specified amount of time in milliseconds. Set to -1 to disable. # ------------------------------------------------------------------------------------------------- Log_Lag_Over_Milis: 100 # ------------------------------------------------------------------------------------------------- # List of section names that will print informative messages about their features. # If you have issues, try enabling either of these sections to self-diagnose: # [mysql, points, bungee, channel, operator, rules, discord, component] # ------------------------------------------------------------------------------------------------- Debug: [] # ------------------------------------------------------------------------------------------------- # Do not change this value, otherwise it will corrupt your plugin installation! # ------------------------------------------------------------------------------------------------- Version: 31 ```
ElBananaa commented 2 years ago

Your issue is caused by this part, under the toggle area:

# -------------------------------------------------------------------------------------------------
# Toggle seeing parts of the plugin - disable private messages, timed broadcasts, join messages etc
# -------------------------------------------------------------------------------------------------
Toggle:

  # Where should we enable this feature?
  # Available: chat, mail, announcement, me, pm
  #
  # Leave empty to completely prevent players from disabling all of these features.
  Apply_On:
  - 'announcement'
  - 'timed'

  # The commands that invoke the toggle command.
  # EDIT AS YOU WISH BUT DO NOT REMOVE THE FIRST ALIAS
  Command_Aliases:
  - 'toggleall'
  - 'broadcastoff'

As you can see above Apply_On, the available options are: chat, mail, announcement, me, pm but you specified timed. Remove timed from the Apply_On part and it'll solve your issue.

HorusApl commented 2 years ago

Did you see the conversation parts above? I know that's what was causing the issue and have removed it. I was told to put it there as an answer to my original question

TheIntolerant commented 2 years ago

My apologies, ignore everything I suggested except this :P

The permission players will need I believe are as follows: chatcontrol.command.toggle.timed chatcontrol.command.toggle.on chatcontrol.command.toggle.off

And lastly, the full command players will need to type is /toggle timed {group} So for you, it will be: /toggle timed standard

I assumed you needed to add timed for /toggle, to work for timed messages but turns out that should work without any config edits, as long as you have the perms listed above.