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

[Bot]: 设置假人自动更新以后无法下线假人 #193

Closed
Aimerny opened this issue Jun 2, 2024 · 4 comments · Fixed by #200
Closed

[Bot]: 设置假人自动更新以后无法下线假人 #193

Aimerny opened this issue Jun 2, 2024 · 4 comments · Fixed by #200
Labels
bug Something isn't working

Comments

@Aimerny
Copy link
Collaborator

Aimerny commented Jun 2, 2024

Please go to discussions to ask for help!

需要帮助请前往 discussions

Description丨描述

修改了假人bot_a的自动更新字段为True以后无法使用 !!bot kill bot_a 以及 !!bot kill a来下线假人。修改为False以后正常下线

Screenshots丨截图

修改为自动更新尝试操作下线无效

image

修改回False正常下线,随后重新改回True问题复现

image

Additional context丨附加信息

游戏版本: 1.20.1
bot插件版本: 1.1.4
MCDR版本: 2.12.3

@Aimerny
Copy link
Collaborator Author

Aimerny commented Jun 2, 2024

补充服务端日志报错:

[MCDR] [12:32:53] [killBot/WARNING] [minecraft_data_api]: [Minecraft Data API] Query for player bot_a at path timeout
Exception in thread killBot:
Traceback (most recent call last):
File "c:\users\aimerny\appdata\local\programs\python\python39\lib\threading.py", line 954, in _bootstrap_inner
self.run()
File "c:\users\aimerny\appdata\local\programs\python\python39\lib\threading.py", line 892, in run
self._target(*self._args, **self._kwargs)
File "c:\users\aimerny\appdata\local\programs\python\python39\lib\site-packages\mcdreforged\api\decorator\new_thread.py", line 29, in wrapped_target
raise e from None
File "c:\users\aimerny\appdata\local\programs\python\python39\lib\site-packages\mcdreforged\api\decorator\new_thread.py", line 26, in wrapped_target
self.return_value = target(*args, **kwargs)
File "plugins\Bot-v1.1.4.mcdr\bot\bot.py", line 226, in kill
File "plugins\Bot-v1.1.4.mcdr\bot\plugin.py", line 102, in get_location
TypeError: 'NoneType' object is not subscriptable

@AnzhiZhang
Copy link
Owner

获取位置失败,请检查Minecraft Data API,并尝试玩家直接spawn是否正常

@Aimerny
Copy link
Collaborator Author

Aimerny commented Jun 2, 2024

获取位置失败,请检查Minecraft Data API,并尝试玩家直接spawn是否正常

直接spawn正常,截图上下文中有相关信息

@AnzhiZhang
Copy link
Owner

AnzhiZhang commented Jun 2, 2024

name 不一致

self.set_location(self.__plugin.get_location(self.name))

add name_at_join

@AnzhiZhang AnzhiZhang added the bug Something isn't working label Jun 2, 2024
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

Successfully merging a pull request may close this issue.

2 participants