-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sponge command throwing error with no subcommand #1953
Comments
The problem here is that Sponge's The solution to this is to create the final ChildCommandElementExecutor flagChildren = new ChildCommandElementExecutor(null);
final ChildCommandElementExecutor nonFlagChildren = new ChildCommandElementExecutor(flagChildren, flagChildren, true); |
Considering it was working previously, is @SimonFlash 's suggestion a work around? or is the current behavior unintended given the current command code? |
Workaround should work - at least ish, though I don't think it'll give the correct usage (I think, haven't tested it, this is skimming code while in bed), reasoning is not completely correct. Note that these child commands are not written in the normal way. The children arguments are specified differently, so the expectation is that these arguments should create the usage. As I'll fix it either tonight or this weekend. |
* Bump SpongeAPI for command fixes * Fix error message on /sponge when no subcommand is provided - This is a quick fix, probably want something a bit better than this later - Fixes #1953
I am currently running
Issue Description
type
/sponge
in console, get replyexpected result
The text was updated successfully, but these errors were encountered: