【Lv:4】
- 注册
- 2020/04/23
- 消息
- 28
- 金粒
- 3,743.08金粒
Pneu Jai 提交新资源:
Command Parser API - Parses command string to JSON object 將命令字符串解析為JSON物件
只是一個API,不是寫插件的請無視
阅读关于此资源更多信息...
Command Parser API - Parses command string to JSON object 將命令字符串解析為JSON物件
只是一個API,不是寫插件的請無視
用法:
parseCommand(commandRaw);
key: 命令字符串
(e.g.:
/give "that player" stone 1 0 {"can_place_on": {"blocks": ["grass", "air"]}}
)
output: JSON物件
(from e.g.:
{"raw":"/give \"that player\" stone 1 0 {\"can_place_on\": {\"blocks\": [\"grass\", \"air\"]}}","method":"give","args":["\"that player\"","stone","1","0","{\"can_place_on\": {\"blocks\": [\"grass\", \"air\"]}}"]}
)
[LINE][/LINE]
例:
1. Static
JavaScript:parseCommand('give "that player"...
阅读关于此资源更多信息...
最后编辑: