Class CollectionCommandHandler
java.lang.Object
de.marcely.bedwars.api.command.CollectionCommandHandler
- All Implemented Interfaces:
CommandHandler, CommandHandlerWrappedSender
The default handler of a
CommandsCollection-
Nested Class Summary
Nested classes/interfaces inherited from interface CommandHandler
CommandHandler.Silent -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.There is no reason for you to construct it -
Method Summary
Modifier and TypeMethodDescriptionReturns the plugin that created this handleronAutocomplete(CommandSenderWrapper sender, String[] args) Gets called whenever someone autocompletes (presses tab) on the commandvoidonFire(CommandSenderWrapper sender, String fullUsage, String[] args) Gets called whenever someone executes the commandvoidonRegister(SubCommand collection) Gets called whenever the command is getting added as handlerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommandHandler
getBukkitLabel, getOverridingUsageMethods inherited from interface CommandHandlerWrappedSender
getContentAmount, getContentAmount, onAutocomplete, onFire
-
Constructor Details
-
CollectionCommandHandler
Deprecated.There is no reason for you to construct itAlready constructed by MBedwars.- See Also:
-
-
Method Details
-
getPlugin
Description copied from interface:CommandHandlerReturns the plugin that created this handler- Specified by:
getPluginin interfaceCommandHandler- Returns:
- The plugin of this handler
-
onRegister
Description copied from interface:CommandHandlerGets called whenever the command is getting added as handler- Specified by:
onRegisterin interfaceCommandHandler- Parameters:
collection- The command to which the handler has been added to
-
onFire
Description copied from interface:CommandHandlerWrappedSenderGets called whenever someone executes the command- Specified by:
onFirein interfaceCommandHandlerWrappedSender- Parameters:
sender- The person who executed the commandfullUsage- The full usage, including the label and everythingargs- Passed arguments to this command
-
onAutocomplete
Description copied from interface:CommandHandlerWrappedSenderGets called whenever someone autocompletes (presses tab) on the command- Specified by:
onAutocompletein interfaceCommandHandlerWrappedSender- Parameters:
sender- The person who did the autocompleteargs- The given arguments- Returns:
- What shall be shown to the player as options. Returning null will display all players
-