ClientCommands icon indicating copy to clipboard operation
ClientCommands copied to clipboard

StringArgumentType.greedyString()

Open user84918342 opened this issue 5 years ago • 1 comments

I want to have two custom Strings that can be typed and include symbols. So I am doing: .then(ArgumentBuilders.argument("stringWithSymbol", StringArgumentType.greedyString()) (greedyString allows symbols) but the String never ends ingame and I want to have a String after this. Any idea for fixing this?

user84918342 avatar Aug 22 '20 20:08 user84918342

greedyString is greedy by definition: it captures everything until the end of the command. You'll most likely want string in this case.

Juuxel avatar Aug 23 '20 10:08 Juuxel