Skip to content

fix: brigadier error when only optional flags and switches#140

Merged
Revxrsal merged 1 commit intoRevxrsal:v4from
SkytAsul:v4
Sep 12, 2025
Merged

fix: brigadier error when only optional flags and switches#140
Revxrsal merged 1 commit intoRevxrsal:v4from
SkytAsul:v4

Conversation

@SkytAsul
Copy link
Contributor

Until now, calling commands having only optional flags and/or switches without specifying any of those flag or switch resulted in an "incomplete command" Brigadier error.

Fixes #137.

This is really blocking for commands that rely on switches. The only workaround is to create a separate command. I hope this fix handles all cases.

Until now, calling commands having only optional flags and/or switches
without specifying any of those flag or switch resulted in an "incomplete command" Brigadier error.
@SkytAsul
Copy link
Contributor Author

I tested in a plugin of mine (a simple command with 1 switch) and it's working properly.

@Revxrsal
Copy link
Owner

LGTM. Thanks!

@Revxrsal Revxrsal merged commit 3b98cb2 into Revxrsal:v4 Sep 12, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameters marked with @Switch are required in commands

2 participants