-
-
Notifications
You must be signed in to change notification settings - Fork 340
Open
Labels
status: needs triageThis label is automatically applied to new issues and pull requests to indicate they require triageThis label is automatically applied to new issues and pull requests to indicate they require triage
Description
Major SpongeAPI version
9
Is this likely to be a breaking change?
No
What are you requesting?
The ability to unregister a command at any time after registration. I suppose a method such as CommandRegistrar#unregister(CommandMapping) would be suitable; the exact API is of course open for discussion.
The motivation is to support plugins which dynamically register certain commands, and might wish to unregister some commands if their configuration has changed. The most compelling example is an alias plugin, the sort of plugin whose purpose it is to define command aliases. An alias plugin would need to unregister previously-configured aliases after its configuration is reloaded.
Command registration occurs during the CommandRegisterEvent. Unregistration should ideally be possible at any arbitrary time thereafter.
Metadata
Metadata
Assignees
Labels
status: needs triageThis label is automatically applied to new issues and pull requests to indicate they require triageThis label is automatically applied to new issues and pull requests to indicate they require triage