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

[Feature Request] list 命令可配置 #11

Closed
sileence114 opened this issue Mar 25, 2024 · 0 comments
Closed

[Feature Request] list 命令可配置 #11

sileence114 opened this issue Mar 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sileence114
Copy link

Arclight 服务端用了基础插件 CMI,它更改了 list 命令的 format:

[MCDR] [16:08:54] [TaskExecutor/INFO] [prime_backup]: Found existing valid data of the previous online player counter, inherit it
[Server] [16:08:54 INFO] [Console]: ========================
[Server] [16:08:54 INFO] [Console]: 在线玩家 4/20
[Server] [16:08:54 INFO] [Console]: : bot_loader_end, bot_loader
[Server] default: Silence114, EsenciaEmpress
[Server] [16:08:54 INFO] [Console]: ========================
Exception in thread loadBot:
Traceback (most recent call last):
  File "C:\Users\10163\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "C:\Users\10163\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\10163\AppData\Local\Programs\Python\Python312\Lib\site-packages\mcdreforged\api\decorator\new_thread.py", line 29, in wrapped_target
    raise e from None
  File "C:\Users\10163\AppData\Local\Programs\Python\Python312\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_manager.py", line 56, in __load_data
TypeError: 'NoneType' object is not subscriptable

pb获取玩家列表时,list 命令在bukkit层面被映射到了 cmi:bukkit ,导致 info 无法被解析。
而 minecraft 原版的命令并没有被插件删除,可以用 minecraft:list 调用:

> minecraft:list
[Server] [16:09:21 INFO]: There are 4 of a max of 20 players online: bot_loader_end, bot_loader, Silence114, EsenciaEmpress

希望能直接配置list命令以适配这种情况。

@Fallen-Breath Fallen-Breath added the enhancement New feature or request label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants