You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
A248
added
the
status: needs triage
This label is automatically applied to new issues and pull requests to indicate they require triage
label
Jul 22, 2022
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.
The text was updated successfully, but these errors were encountered: