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
65 stars 36 forks source link

[Bug] broadcastPlayerCommandExecution #183

Open BUBUSTEIN13 opened 1 year ago

BUBUSTEIN13 commented 1 year ago

Checks

Java Version

17

Minecraft Version

1.19.2

MCDiscordChat Version

2.1.4

Description

When it is enable i want to send the commands only in console chat, not also in chat

To Reproduce

set it to true

try one command.

see in chat

Log

No log.

Config

{ "generic": { "language": "en_us", "botToken": "TOKEN", "botPlayingStatus": "bubustein.tk | Minecraft", "botListeningStatus": "", "webhookUrl": "", "channelId": "~", "consoleLogChannelId": "~", "updateNotificationChannelId": "", "useUuidInsteadOfName": true, "avatarApi": "https://mc-heads.net/avatar/%player%.png", "broadcastPlayerCommandExecution": true, "broadcastSlashCommandExecution": true, "announceServerStartStop": true, "announcePlayerJoinLeave": true, "announceDeathMessages": true, "announceAdvancements": true, "broadcastChatMessages": true, "formatChatMessages": false, "allowMentions": true, "useServerNickname": true, "discordNewlineLimit": 3, "announceHighMspt": true, "msptCheckInterval": 5000, "msptLimit": 50, "notifyUpdates": true, "mentionAdminsForUpdates": true, "updateChannelTopic": true, "channelTopicUpdateInterval": 600000, "shutdownImmediately": false, "excludedCommands": [], "adminsIds": [ "693381473083850753" ] }, "multiServer": { "enable": false, "host": "127.0.0.1", "port": 5000, "name": "SMP", "botIds": [] }, "customMessage": { "unformattedResponseMessage": "┌──── %name% > %message%", "unformattedChatMessage": "[%server%] %name% > %message%", "unformattedOtherMessage": "[%server%] %message%", "unformattedCommandNotice": "", "formattedResponseMessage": "", "formattedChatMessage": "", "formattedOtherMessage": "", "formattedCommandNotice": "", "serverStarted": "<:check:992788321463967834> The server has started", "serverStopped": "<:no:992788982163308615> The server has stopped", "joinServer": "", "leftServer": "", "deathMessage": "", "advancementTask": "", "advancementGoal": "", "advancementChallenge": "", "highMspt": "", "offlineChannelTopic": "", "onlineChannelTopic": "", "onlineChannelTopicForMultiServer": "" }, "latestVersion": "2.1.4", "latestCheckTime": 1692774891892 }

Xujiayao commented 1 year ago

Well, official Minecraft without MCDC does not broadcast in-game player command execution, and I made this function myself. The console logs are retrieved from the official log file, which is why all commands from both chat and console do not appear once the broadcastPlayerCommandExecution option is disabled.

There is no plan to separate the visibility of command execution for each channel.