Class AShowCommand
java.lang.Object
com.ordwen.odailyquests.api.commands.admin.AdminMessages
com.ordwen.odailyquests.api.commands.admin.AdminCommandBase
com.ordwen.odailyquests.commands.admin.handlers.AShowCommand
- All Implemented Interfaces:
AdminCommand
,AdminCommandCompleter
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Executes the command logic when the command is invoked.getName()
Gets the name of the command.Gets the required permission to execute the command.onTabComplete
(org.bukkit.command.CommandSender sender, String[] args) Provides tab-completion suggestions for the command based on the current arguments.Methods inherited from class com.ordwen.odailyquests.api.commands.admin.AdminCommandBase
getTargetPlayer, parseQuestIndex
Methods inherited from class com.ordwen.odailyquests.api.commands.admin.AdminMessages
help, invalidAmount, invalidCategory, invalidPlayer, invalidQuest
-
Constructor Details
-
AShowCommand
-
-
Method Details
-
getName
Description copied from interface:AdminCommand
Gets the name of the command. This is used as the subcommand identifier (e.g.,/command <name>
).- Returns:
- the subcommand name
-
getPermission
Description copied from interface:AdminCommand
Gets the required permission to execute the command.- Returns:
- the permission node as a string
-
execute
Description copied from interface:AdminCommand
Executes the command logic when the command is invoked.- Parameters:
sender
- the command sender (can be a player or the console)args
- the arguments passed to the command
-
onTabComplete
Description copied from interface:AdminCommandCompleter
Provides tab-completion suggestions for the command based on the current arguments.This method is called when a player or console user presses the TAB key while typing a command. You can use it to offer context-aware completions such as subcommands, player names, or any other dynamic options.
Returning
null
will allow Bukkit to automatically suggest online player names. Returning an empty list will disable tab completion at that argument position.- Parameters:
sender
- the command sender (can be a player or the console)args
- the arguments currently entered for the command- Returns:
- a list of possible completions,
null
to let Bukkit suggest player names, or an empty list to disable suggestions
-