Package de.marcely.bedwars.api.command
Class HelpCommandHandler
java.lang.Object
de.marcely.bedwars.api.command.HelpCommandHandler
- All Implemented Interfaces:
CommandHandler
,CommandHandlerWrappedSender
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.marcely.bedwars.api.command.CommandHandler
CommandHandler.Silent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiononAutocomplete
(CommandSenderWrapper sender, String[] args) Gets called whenever someone autocompletes (presses tab) on the commandvoid
onFire
(CommandSenderWrapper sender, String fullUsage, String[] args) Gets called whenever someone executes the commandvoid
onRegister
(SubCommand collection) Gets called whenever the command is getting added as handlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.marcely.bedwars.api.command.CommandHandler
getBukkitLabel, getOverridingUsage, getPlugin
Methods inherited from interface de.marcely.bedwars.api.command.CommandHandlerWrappedSender
getContentAmount, getContentAmount, onAutocomplete, onFire
-
Constructor Details
-
HelpCommandHandler
public HelpCommandHandler()
-
-
Method Details
-
onRegister
Description copied from interface:CommandHandler
Gets called whenever the command is getting added as handler- Specified by:
onRegister
in interfaceCommandHandler
- Parameters:
collection
- The command to which the handler has been added to
-
onFire
Description copied from interface:CommandHandlerWrappedSender
Gets called whenever someone executes the command- Specified by:
onFire
in 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:CommandHandlerWrappedSender
Gets called whenever someone autocompletes (presses tab) on the command- Specified by:
onAutocomplete
in 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
-