- Type Parameters:
C- The type of command that is being registered.
This event is generic and the type parameter is required.
This type parameter (
C) will correspond to the base class or
interface that your command inherits from.
There are two types of command that Sponge will always call an event for:
Commands that have been generated using
be registered during the
Other plugins and platforms may provide a
allows for other types to be registered as commands. These types will be
provided by these other plugins, consult their documentation for more
This event will be called whenever the game re-initializes commands, and does not guarantee that any specific engine is running.
Nested Class SummaryModifier and TypeInterfaceDescription
(org.spongepowered.plugin.PluginContainer container, C command, String alias, String... aliases) throws CommandFailedRegistrationException
command- The command to register
alias- The first alias to register for this command
aliases- Any other aliases to register
RegisterCommandEvent.Result, which contains the
CommandMappingfor this registration, while also allowing for chaining of other command registrations.
CommandFailedRegistrationException- if registration failed