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

命令处理的机制错误/特性 #2

Open
3328429240 opened this issue Jul 14, 2024 · 1 comment
Open

命令处理的机制错误/特性 #2

3328429240 opened this issue Jul 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@3328429240
Copy link

以下为GMP作者迪安 Dean分析,我不懂这块

Beast改了命令处理的机制
原版命令,命令中多的空格最后只会试作一个空格
而这个他把命令执行里的空格全变成arguments了
GMP的购买GUI上确认购买的命令的原参数中,数量一栏默认是一个占位符,没有指定数量的话这个占位符会变成一个空字符串,有指定数量就会是一个数字
所以变成空字符串,被你这个服务端当成了一个命令argument
例如
e83fca3d6bae7a304e300aa1a82bf7cf
如果我在中间加一大堆空格,原版服务端下会是[transaction, confirm, ,{uid}]四个元素
但是这个核心,他是[transaction, confirm, , , , , , , , , , ,{uid}]
中间的空格全被当成arguments了

至此GMP对指令的操作方式报错,无法使用,希望可以兼容并修复此问题,感谢!

@3328429240 3328429240 added the bug Something isn't working label Jul 14, 2024
@Dreeam-qwq
Copy link

测了一下,Paper1.12.2 1620也是将每个空格split成args啊

而且有两个问题

  1. 你不在中间加一大堆空格不就行了
  2. gmp为什么要规定空格没有指定数量,用-1来代表更合理吧

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

No branches or pull requests

2 participants