Closed nostalfinals closed 3 months ago
Legacy brig only appears to work as it does nothing (Paper never re-implemented the old API on 1.20.6+). https://github.com/Mojang/brigadier/blob/master/src/main/java/com/mojang/brigadier/StringReader.java#L169-L175 Mojang is very restrictive on what is allowed in unquoted strings. You must map your argument to a Brigadier type that accepts Chinese characters, like greedy or quoted string.
I'm using the latest snapshot of
cloud
andcloud-minecraft
.When I try to add an argument to my command that may contain Chinese characters, the command doesn't work.
In
SINGLE
mode,StringParser
seems to read all contents from theCommandInput
. I suspect this issue is related to the platform'sCommandManager
.When I switch to
LegacyPaperCommandManager
and register a legacy Paper brigadier, the command works correctly.Here is how I create my command: