Hmmm, I have read over the page on the sponge official documents page and feel incredibly confused by it.
If I wanted the input command to be
/command [boulean] [integer] [message, using group remaining strings]
would the argument list be:
.arguments (
GenericArguments.bool(Text.of(“boolean”)));
GenericArguments.integer(Text.of(“integer”)));
GenericArguments.remainingJoinedStrings(Text.of(“message”)))
Thanks for the help, sorry if I am being stupid.
That’s seems about right.
Edit: Opps didn’t notice the use of semicolorn instead of a comma.
.arguments ( GenericArguments.bool(Text.of("boolean")), GenericArguments.integer(Text.of("integer")), GenericArguments.remainingJoinedStrings(Text.of("message")))
1 Like
Rather then Text.of(“boolean”) though, you would do something like Text.of(“force”)
or instead of Text.of(“integer”) , Text.of(“quantity”)
Those text keys should be descriptive, and potentially even translatable, although I’ve not seen a good method of doing it yet.
1 Like