Closed RumoaNoa closed 1 month ago
It seems impossible to make both mods compatible with each other, as MCDC modifies the ServerPlayNetworkHandler
class for in-game chat messages, but Chat Control modifies PlayerManager
instead.
Hey there,
I'm the developer of Chat Control and this is no longer an issue. Chat Control switched to ServerPlayNetworkHandler
about 4 months ago and now censors the output of this mod.
Cheers!
Hi! Thanks for the information, I will do a check when I have time 😄
After testing with the latest version of Chat Control, normal chat messages are indeed not sent to Discord.
However, be aware that if broadcastPlayerCommandExecution
is enabled, command text (such as /tell @a censor
) will still be sent to Discord.
Users can use regex and add these words one by one to the excludedCommands
list in DMCC config to prevent these commands from being sent to Discord: (Tested working)
"excludedCommands": [
"\\/msg ([^@].*)",
"\\/tell ([^@].*)",
"\\/tellraw ([^@].*)",
"\\/w ([^@].*)",
"\\/teammsg (.*)",
"\\/tm (.*)",
+ ".*censor1.*",
+ ".*censor2.*"
],
Test before adding the item to the excludedCommands
list:
...
[00:58:33] [Server thread/INFO]: <Xujiayao> test
[00:58:34] [Server thread/INFO]: Filtered Message From: Xujiayao (69ca1318-24ef-4560-b35e-85865d85ab49): censor
[00:58:58] [Server thread/INFO]: <Xujiayao> /say test
[00:58:58] [Server thread/INFO]: [Xujiayao] test
[00:59:44] [Server thread/INFO]: <Xujiayao> /say censor
[00:59:44] [Server thread/INFO]: Filtered Message From: Xujiayao (69ca1318-24ef-4560-b35e-85865d85ab49): censor
[00:59:50] [Server thread/INFO]: [Server] test
[00:59:57] [Server thread/INFO]: [Server] censor
[01:00:27] [Server thread/INFO]: <Xujiayao> /tellraw @a {"text":"censor"}
[01:00:27] [Server thread/INFO]: Filtered Message From: Xujiayao (69ca1318-24ef-4560-b35e-85865d85ab49): tellra@a {"text":"censor"}
[01:00:33] [Server thread/INFO]: <Xujiayao> /tellraw @a {"text":"test"}
...
Checks
Java Version
17.0.7
Minecraft Version
1.19.4
MCDiscordChat Version
2.1.4
Description
I'm using Chat Control mod (Github link) (version 1.2) to filter out bad words from game chat. The filtered message is gone from the game chat, but it is broadcasted to Discord. Switching
formatChatMessages
to any value doesn't work.Screencast from 2023-06-07 15-39-35.webm
To Reproduce
chatcontrol.json
config file. Example:Reload the config with
/filter config reload
.Log
Details
Config