Xujiayao / Discord-MC-Chat

Discord-MC-Chat (DMCC), formerly known as MC-Discord-Chat and MCDiscordChat (MCDC), is a practical and powerful Fabric and Quilt Minecraft <> Discord chat bridge inspired by BRForgers/DisFabric
https://blog.xujiayao.com/posts/4ba0a17a/
MIT License
62 stars 35 forks source link

[Bug] Messages are not displayed in the game chat (maybe conflict with StyledPlayerList) #142

Open DJantake opened 1 year ago

DJantake commented 1 year ago

Checks

Java Version

17.0.7

Minecraft Version

1.19.2

MCDiscordChat Version

2.1.4

Description

Messages are not displayed in the game chat. 1 2

To Reproduce

I think the problem may be in conflict with StyledPlayerChat and the Placeholder API extension to support LuckyPerms prefixes, because if you set the formatChatMessages parameter to "false", then everything will work fine. (I didn't check what would happen if I turned off StyledPlayerChat formatting, sorry)

Log

Don't have one, this does not cause the crash of the game.

Config

{ "generic": { "language": "ru_ru", "botToken": "MTExNDEzMjI4NTMxMTE1NjI0NA.GEIXjY.2tnei03yyyARnBggCyfHMkIYc70bajHVekW12Y", "botPlayingStatus": "Minecraft (%onlinePlayerCount%/%maxPlayerCount%)", "botListeningStatus": "", "webhookUrl": "https://discord.com/api/webhooks/1114181381765992488/v8yXSurbJQOPlJ9yNgU8MFCtHqHqyZEfhO-tWb-si0j3MzwU32gWLVQ4AvSJkLlmXdsX", "channelId": "979297208467849226", "consoleLogChannelId": "990119227178508298", "updateNotificationChannelId": "990119227178508298", "useUuidInsteadOfName": false, "avatarApi": "https://mc-heads.net/avatar/%player%.png", "broadcastPlayerCommandExecution": false, "broadcastSlashCommandExecution": false, "announceServerStartStop": true, "announcePlayerJoinLeave": true, "announceDeathMessages": true, "announceAdvancements": true, "broadcastChatMessages": true, "formatChatMessages": true, "allowMentions": true, "useServerNickname": true, "discordNewlineLimit": 10, "announceHighMspt": true, "msptCheckInterval": 5000, "msptLimit": 50, "notifyUpdates": true, "mentionAdminsForUpdates": true, "updateChannelTopic": true, "channelTopicUpdateInterval": 600000, "shutdownImmediately": false, "excludedCommands": [ "/msg", "/tell", "/tellraw", "/w" ], "adminsIds": [ "1047952574445256855", "1048191996143091752" ] }, "multiServer": { "enable": false, "host": "127.0.0.1", "port": 5000, "name": "SMP", "botIds": [] }, "customMessage": { "unformattedResponseMessage": "", "unformattedChatMessage": "", "unformattedOtherMessage": "", "unformattedCommandNotice": "", "formattedResponseMessage": "", "formattedChatMessage": "", "formattedOtherMessage": "", "formattedCommandNotice": "", "serverStarted": "", "serverStopped": "", "joinServer": "", "leftServer": "", "deathMessage": "", "advancementTask": "", "advancementGoal": "", "advancementChallenge": "", "highMspt": "", "offlineChannelTopic": "", "onlineChannelTopic": "", "onlineChannelTopicForMultiServer": "" }, "latestVersion": "2.1.4", "latestCheckTime": 1685411847589 }

Xujiayao commented 1 year ago

I think the problem may be in conflict with StyledPlayerChat and the Placeholder API extension to support LuckyPerms prefixes, because if you set the formatChatMessages parameter to "false", then everything will work fine. (I didn't check what would happen if I turned off StyledPlayerChat formatting, sorry)

Your deduction should be correct. formatChatMessages is incompatible with StyledChat. The solution to this problem should be to turn off formatChatMessages as this mod has no intention of using the PlaceholderAPI.

DJantake commented 1 year ago

Okay, thank you. If I find another way to solve this problem, I will write here later.

Xujiayao commented 1 year ago

Thanks! Looking forward to any good news!

Xujiayao commented 8 months ago

Since MCDC plans to be compatible with these mods in the future, this issue is now re-opened.