Add a ManagerSetting to override existing commands

This commit is contained in:
jmp 2020-12-03 21:06:09 -08:00 committed by Alexander Söderberg
parent 1ff5a2c4ce
commit ded94567c6
3 changed files with 15 additions and 1 deletions

View file

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
handled using `CommandManager#registerExceptionHandler`, similar to `NoSuchCommandException`, `ArgumentParseException`, etc.
- Added registration state to command managers
- Added ALLOW_UNSAFE_REGISTRATION ManagerSetting to disable state checks when registering commands
- Added OVERRIDE_EXISTING_COMMANDS ManagerSetting to allow for overriding of existing commands on supported platforms
### Changed
- Allow for use of `@Completions` annotation with argument types other than String