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
Refactor Command Parser #874
Conversation
原版的命令返回值并不是简单的boolean,而是数字 |
考虑过使用mojang官方的命令库吗? https://github.com/Mojang/brigadier |
那玩意不好使 |
一开始就考虑过,但是改动太大,想兼容旧插件几乎不可能 |
重构命令前考虑下合并主分支? |
比如说/debug已经在 #920 更改了 |
# Conflicts: # src/main/java/cn/nukkit/Player.java # src/main/java/cn/nukkit/entity/Entity.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有逐个检查
P.S. 好像没看到有做错误恢复解析
Command#execute(CommandSender sender, String commandLabel, Map.Entry<String, ParamList> result, CommandLogger log)