Change how command lines are parsed into args. #6703
Labels
Category: API
Related to the plugin API
Opinions Wanted
Request for comments & opinions from the community
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Problem description
The current
SimpleCommandMap::dispatch()
use CommandHelper::parseQuoteAware() to parse command line to args, currently this following command line/tellraw @a[name="Arie1906", c=1] "quoted \"你好\"" {"rawtext": [{"text":"§bI am blue"}]}
would be parsed to [/tellraw
,@a[name="Arie1906",
,c=1]
,quoted "你好"
,{"rawtext":
,[{"text":"§bI
,am
,blue"}]}
][...]
,{...}
or(...)
)I
,am
,blue
; despite it being in a quote./tellraw
,@a[name="Arie1906, c=1]
,quoted "你好"
,{"rawtext": [{"text":"§bI am blue"}]}
]Proposed solution
This following will parse the command line exactly as I wanted while having no effects on performance. RUN
Alternative solutions or workarounds
No response
The text was updated successfully, but these errors were encountered: