Closed ToooAir closed 4 months ago
Hi, thank you for the star!
This is a known issue. There is no need to do anything about this, as this only happens when a fresh server starts. Also, the server doesn't crash with this exception, it keeps running and disappears on the next start.
Sorry for wrong info. It's work perfectly next start🤣.
👍🤣
@Xujiayao
想一想我還是打中文就好了
我想問問
在"updateChannelTopic": true
的狀況下
Server 下達 Stop 指令後不會在儲存後 Shutdown
會送出 "serverStopped" 的訊息
但ChannelTopic也會卡在上線時的狀態不會修改成下線的
Bot也還在線上
这个问题 (https://github.com/Xujiayao/MCDiscordChat/issues/36#issuecomment-1142364668) 昨天才刚修复 6f5ef9e9d48b2f4b5f3283388aa53d11703d612c,我个人是开启MCDC multiServer功能所以一直没有发现这个问题。
现版本暂时把 multiServer.enable
调成 true
即可解决,后续 MCDC 更新 2.0.0-alpha.4 版本就可以调回 false
了。
(所以你引用的其实是修复后的代码)
了解! 不好意思造成您的困擾🥲
没关系,很欢迎此类提问2333
這個問題太多人反應了嗎🤣收到email發現又被打開了
确实。最近在整理所有已有的issue,我感觉应该有办法可以避免这个问题,所以就重新打开了
(不好意思这个issue老是打扰到你)
Now all functions related to world/stats
will not report an exception when world/stats
does not exist, so that the functions can be used normally.
Checks
Java Version
17.0.3
Minecraft Version
1.19
MCDiscordChat Version
Latest build
Description
https://github.com/Xujiayao/MCDiscordChat/blob/6f5ef9e9d48b2f4b5f3283388aa53d11703d612c/src/main/java/top/xujiayao/mcdiscordchat/utils/Utils.java#L245
If there is no "world/stats", It will crash.
To Reproduce
Make a new world, and run it with MCDiscordChat. Keep updateChannelTopic on, and it will throw java.nio.file.NoSuchFileException: world/stats.
Log
Config