Skip to content
This repository was archived by the owner on May 11, 2024. It is now read-only.
This repository was archived by the owner on May 11, 2024. It is now read-only.

bug: multiple arguments as Optional #9

Description

@mluizaa00

The @optional annotation can't be used in the middle of arguments

Example:

// annotation here
public void handleCommand(final Context<Player> context, @Optional final String key, final Player target) {
    // code here
}

The key doesn't work at this example. The error sent is the wrong usage message
Otherwise, if the key is not null (contains a input) the command works perfectly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions