Closed TANGhz17 closed 3 years ago
[MCDR] [23:05:05] [MainThread/INFO]: Loading plugins
[MCDR] [23:05:05] [MainThread/INFO]: Plugin ./plugins/Calculator.py reloaded
[MCDR] [23:05:05] [MainThread/INFO]: Plugin ./plugins/daycount.py reloaded
[MCDR] [23:05:05] [MainThread/WARNING]: Fail to load plugin ./plugins/joinMOTD.py
[MCDR] [23:05:05] [MainThread/WARNING]: Traceback (most recent call last):
File "C:\Users\MinecraftServer\SuperXK\Survival\utils\plugin_manager.py", line 20, in load_plugin
plugin.load()
File "C:\Users\MinecraftServer\SuperXK\Survival\utils\plugin.py", line 30, in load
self.module = tool.load_source(self.file_name)
File "C:\Users\MinecraftServer\SuperXK\Survival\utils\tool.py", line 24, in load_source
spec.loader.exec_module(module)
File "
需要daycount这个插件
[Server] [09:00:01] [Server thread/INFO]: TANGhz17 joined the game Exception in thread on_player_joined@joinMOTD: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "./plugins/joinMOTD.py", line 53, in on_player_joined onPlayerJoin(server, playername) File "./plugins/joinMOTD.py", line 23, in onPlayerJoin with open(ConfigFilePath, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: 'config/joinMOTD.json'
找不到json可它就在这个目录里啊 @Fallen-Breath 有点看不懂
在修了修好了现在可以跑了
Exception in thread on_player_joined@joinMOTD: Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "./plugins/joinMOTD.py", line 58, in on_player_joined onPlayerJoin(server, playername) File "./plugins/joinMOTD.py", line 26, in onPlayerJoin with open(ConfigFilePath, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: 'config/joinMOTD.json' 我。。。。。 更新一下之后,
要写配置文件呀
耶,修好了,配置文件应该放在MCDR\config\joinMOTD.json,怪不得老是告诉我找不到文件,我原来放在joinMOTD.py同层了 <3 再次拜佛
同求,我的joinMOTD也是一直不好使
拜佛.jpg 原版+地毯服(这个没影响吧,我感觉 是不是还有什么没有改