Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] High MSPT warnings printed to console log channel instead of normal channel #171

Closed
3 tasks done
LessThanBenji opened this issue Jul 17, 2023 · 2 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@LessThanBenji
Copy link

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
}

@LessThanBenji LessThanBenji added the bug Something isn't working label Jul 17, 2023
@LokeYourC3PH
Copy link

+1

@Xujiayao
Copy link
Owner

Xujiayao commented Aug 9, 2023

Hi. U may use the latest build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants