Skip to content
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

Paper 1.19.2 brigadier no argument command issue #30

Closed
airoons opened this issue Oct 13, 2022 · 2 comments
Closed

Paper 1.19.2 brigadier no argument command issue #30

airoons opened this issue Oct 13, 2022 · 2 comments

Comments

@airoons
Copy link

airoons commented Oct 13, 2022

Hey,

I've encountered an issue with paper brigadier using latest Lamp version (from latest commit) on Paper 1.19.2.

Commands with multiple arguments (including optional ones) work as intended. But when I create a command with no arguments, brigadier expects an argument (which shouldn't be happening).

Code example:

@Command("testcmd")
public void execute(Player player) { ... }

Result in-game:
In-game screenshot

I should note that the same issue is with subcommands - if subcommand doesn't have arguments, same issue occurs.

@Grabsky
Copy link
Contributor

Grabsky commented Oct 16, 2022

Provided code works as expected on commits prior to bda04dc.

@Revxrsal
Copy link
Owner

Fixed in 431e81c. Thanks for reporting.

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

No branches or pull requests

3 participants