Uses of Interface
de.marcely.bedwars.api.command.SubCommand
-
Uses of SubCommand in de.marcely.bedwars.api.command
Modifier and TypeInterfaceDescriptioninterface
A collection of sub commands
The default handler is the HelpCommandHandler
It'll display all commands, similar to /bw and /bw arenaModifier and TypeMethodDescription@Nullable SubCommand
CommandsCollection.addCommand
(String name) Add a command to this collectiondefault @Nullable SubCommand
CommandsCollection.getCommand
(String name) Returns the sub command that has that name or an alias with that name@Nullable SubCommand
CommandsCollection.getCommand
(String name, boolean deep) Returns the sub command that has a name equal to the givenname
parameterModifier and TypeMethodDescriptionCommandsCollection.getCommands()
Returns the command that have been already added to this collectionModifier and TypeMethodDescriptionvoid
CollectionCommandHandler.onRegister
(SubCommand collection) void
CommandHandler.onRegister
(SubCommand cmd) Gets called whenever the command is getting added as handlervoid
CommandHandler.Silent.onRegister
(SubCommand cmd) void
HelpCommandHandler.onRegister
(SubCommand collection) boolean
CommandsCollection.removeCommand
(SubCommand command) Removes the command from the collection -
Uses of SubCommand in de.marcely.bedwars.api.event
Modifier and TypeMethodDescriptionCommandExecuteEvent.getCommand()
The subcommand that has been executedModifierConstructorDescriptionCommandExecuteEvent
(CommandSender sender, SubCommand command, String label, String[] args)