TISUnion / joinMOTD

send player a MOTD when he joins
14 stars 5 forks source link

和daycount放进mcdr的插件文件夹,.json改过了,重加载插件,重进服没有提示 #1

Closed TANGhz17 closed 3 years ago

TANGhz17 commented 4 years ago

拜佛.jpg 原版+地毯服(这个没影响吧,我感觉 是不是还有什么没有改

TANGhz17 commented 4 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 "", line 678, in exec_module File "", line 219, in _call_with_frames_removed File "./plugins/joinMOTD.py", line 4, in from daycount import getday ModuleNotFoundError: No module named 'daycount'

Fallen-Breath commented 4 years ago

需要daycount这个插件

TANGhz17 commented 4 years ago

[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' QQ图片20200407090329 QQ图片20200407090334

TANGhz17 commented 4 years ago

找不到json可它就在这个目录里啊 @Fallen-Breath 有点看不懂

Fallen-Breath commented 4 years ago

在修了修好了现在可以跑了

TANGhz17 commented 4 years ago

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' 我。。。。。 更新一下之后,

Fallen-Breath commented 4 years ago

要写配置文件呀

TANGhz17 commented 4 years ago

耶,修好了,配置文件应该放在MCDR\config\joinMOTD.json,怪不得老是告诉我找不到文件,我原来放在joinMOTD.py同层了 <3 再次拜佛

4O4NtFd commented 4 years ago

同求,我的joinMOTD也是一直不好使 QQ截图20200701211854 QQ截图20200701213310