Skip to content

Internal error on non-UUID argument for /ma delete-session-stats #2

Description

@garbagemule

If you try to pass a non-UUID argument to the delete-session-stats command, the command throws an internal error with the infamous red "An internal error occurred..." message. This is because the command blindly accepts any input and doesn't catch the IllegalArgumentException thrown by UUID.fromString(String) on invalid input.

The plugin should catch the exception and provide the command sender with a proper error message.

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

    good first issuePerfect for people new to the code base.type/bugUnintended behavior or fault.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions