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

Add way to customise message if a typed command is invalid #2216

Open
dualspiral opened this issue Aug 28, 2020 · 3 comments
Open

Add way to customise message if a typed command is invalid #2216

dualspiral opened this issue Aug 28, 2020 · 3 comments
Assignees
Labels
api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) system: command

Comments

@dualspiral
Copy link
Contributor

This arose from discussion with @Faithcaio - basically the exception messages returned from commands that aren't parsed correctly is... bad.

Currently, if you type in a command and it doesn't parse correctly, it states that it is an unknown command. Plugin developers might want return a better message that might display the usage (as an example) if their command is called incorrectly.

I will likely want to add a way to attach a UnknownCommandHandler (name pending) on the Command.Builder object that gets the partial command context and command string - but I do need to think about this a little more.

@dualspiral dualspiral added system: command api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) labels Aug 28, 2020
@dualspiral dualspiral self-assigned this Aug 28, 2020
@ImMorpheus
Copy link
Contributor

@dualspiral Is this fixed by #2296 and ValueParameterModifier#modifyExceptionMessage ?

@dualspiral
Copy link
Contributor Author

Not at all.

@reflqct
Copy link

reflqct commented Nov 21, 2021

I think this would be really useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) system: command
Projects
None yet
Development

No branches or pull requests

3 participants