Skip to content

Add more information to UnknownCommandEvent #11639

@NonSwag

Description

@NonSwag

Is your feature request related to a problem?

When working with the UnknownCommandEvent there is no safe way to detect whether a command failed because of syntax errors or because it doesn't exist, or the sender has no access to it

Describe the solution you'd like.

Adding a method to check whether the command failed to parse or cannot be performed and maybe even the command instance

Describe alternatives you've considered.

Checking if the command exists and whether the sender can perform that command (doesn't work reliably on brigadier commands)

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions