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

Potential Optional issue #105

Closed
aikar opened this issue Mar 6, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@aikar
Copy link
Owner

commented Mar 6, 2018

Re bug report @ https://www.spigotmc.org/threads/acf-beta-annotation-command-framework.234266/page-12#post-2916309

Reported issue with @optional still firing InvalidCommandArgument

@aikar

This comment has been minimized.

Copy link
Owner Author

commented Mar 8, 2018

can not reproduce

works

    @CommandAlias("foo")
    public void onFoo(CommandSender sender, @Optional Long prestige, @Optional BigDecimal modifier) {
        sender.sendMessage("You gave " + (prestige != null ?  prestige : "null") + " prestige at " + (modifier != null ? modifier : "null") + " modifier");
    }

@aikar aikar closed this Mar 8, 2018

@aikar aikar added the cant-reproduce label Mar 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.