[Bug] High MSPT warnings printed to console log channel instead of normal channel #171
Closed
3 tasks done
Labels
bug
Something isn't working
Checks
Java Version
17.0.2
Minecraft Version
1.19.4
MCDiscordChat Version
2.2.0
Description
The high MSPT warning messages are being printed to my console log channel on Discord instead of to the regular channel alongside the rest of chat.
To Reproduce
Set channelID and consoleLogChannelID to different Discord channels, set up and enabled the high MSPT warnings, and then trigger one. It will print to the consoleLogChannelID channel instead of the channelID one, meaning it's hidden from the server's participants and viewable only to admins who have access to the console log channel.
Log
The high MSPT warnings are not printed to the server log. Only the actual "Can't keep up! Is the server overloaded? Running 2400ms or 48 ticks behind" messages are.
Config
{
"generic": {
"language": "en_us",
"botToken": "",
"botPlayingStatus": "with %onlinePlayerCount% players",
"botListeningStatus": "",
"useWebhook": true,
"channelId": "1097538382390894662",
"consoleLogChannelId": "1097538475198271518",
"updateNotificationChannelId": "1097538475198271518",
"useUuidInsteadOfName": true,
"avatarApi": "https://mc-heads.net/avatar/%player%.png",
"broadcastPlayerCommandExecution": false,
"broadcastSlashCommandExecution": false,
"announceServerStartStop": true,
"announcePlayerJoinLeave": true,
"announceDeathMessages": true,
"announceAdvancements": true,
"broadcastChatMessages": true,
"formatChatMessages": true,
"allowedMentions": [
"everyone",
"users",
"roles"
],
"useServerNickname": true,
"discordNewlineLimit": 3,
"announceHighMspt": true,
"msptCheckInterval": 5000,
"msptLimit": 50,
"notifyUpdates": true,
"mentionAdminsForUpdates": true,
"updateChannelTopic": false,
"channelTopicUpdateInterval": 600000,
"shutdownImmediately": true,
"excludedCommands": [
"/msg",
"/tell",
"/w"
],
"adminsIds": [
"670879052311035925"
]
},
"multiServer": {
"enable": false,
"host": "127.0.0.1",
"port": 5000,
"name": "SMP",
"botIds": []
},
"customMessage": {
"unformattedResponseMessage": "",
"unformattedChatMessage": "",
"unformattedOtherMessage": "",
"unformattedCommandNotice": "",
"formattedResponseMessage": "[{"text":" ┌──── ","bold":true,"color":"gray"},{"text":"<%name%> ","bold":false,"color":"white"},{"text":"%message%","bold":false,"color":"gray"}]",
"formattedChatMessage": "[{"text":"<%name%> ","bold":false,"color":"white"},{"text":"[via %server%] ","bold":false,"color":"blue"},{"text":"%message%","bold":false,"color":"white"}]",
"formattedOtherMessage": "[{"text":"[%server%] ","bold":true,"color":"blue"},{"text":"%message%","bold":false,"color":"white"}]",
"formattedCommandNotice": "",
"serverStarted": "The SMP is online!",
"serverStopped": "The SMP has gone offline.",
"joinServer": "%playerName% joined the game",
"leftServer": "%playerName% left the game",
"deathMessage": "%deathMessage%",
"advancementTask": "%playerName% has made the advancement [%advancement%]",
"advancementGoal": "%playerName% has reached the goal [%advancement%]",
"advancementChallenge": "%playerName% has completed the challenge [%advancement%]",
"highMspt": "Lagging! Clocking %mspt% ms/t — values higher than 50 ms/t increasingly degrade performance.",
"offlineChannelTopic": "",
"onlineChannelTopic": "",
"onlineChannelTopicForMultiServer": ""
},
"latestVersion": "2.2.0",
"latestCheckTime": 1688497708336
}
The text was updated successfully, but these errors were encountered: