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.
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 byUUID.fromString(String)
on invalid input.The plugin should catch the exception and provide the command sender with a proper error message.