[MCDR] [20:15:14] [TaskExecutor/ERROR]: Error when executing command "!!qb reload" with command source "Player Alex3236" on Literal[literals={'!!qb'}] registered by quick_backup_multi@1.2.2
Traceback (most recent call last):
File "C:\Program Files\Python39\lib\site-packages\mcdreforged\command\command_manager.py", line 70, in _traverse
node.execute(source, command)
File "C:\Program Files\Python39\lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 411, in execute
self._execute_command(CommandContext(source, command))
File "C:\Program Files\Python39\lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 326, in _execute_command
child_literal._execute_command(context)
File "C:\Program Files\Python39\lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 305, in _execute_command
self.__smart_callback(self._callback, context.source, context)
File "C:\Program Files\Python39\lib\site-packages\mcdreforged\command\builder\nodes\basic.py", line 267, in __smart_callback
return callback(*args[:spec_args_len])
File "plugins\QuickBackupM-v1.2.2.mcdr\quick_backup_multi\__init__.py", line 489, in <lambda>
then(get_literal_node('reload').runs(lambda src: load_config(src.get_server(), src)))
File "plugins\QuickBackupM-v1.2.2.mcdr\quick_backup_multi\__init__.py", line 495, in load_config
config = server.load_config_simple(CONFIG_FILE, default_config, in_data_folder=False, source_to_reply=source)
AttributeError: 'ServerInterface' object has no attribute 'load_config_simple'
错报
原因
解决方案
ServerInterface
中添加一个能获取PluginServerInterface
的办法?on_load
时将PluginServerInterface
给到全局变量