Class DebugCommandHandler
java.lang.Object
com.zetaplugins.zetacore.debug.command.DebugCommandHandler
- All Implemented Interfaces:
CommandExecutor
,TabCompleter
DebugCommandHandler is a command handler for the debug command.
-
Constructor Summary
ConstructorsConstructorDescriptionDebugCommandHandler
(JavaPlugin plugin, File pluginFile, String permission) Constructor for DebugCommandHandler.DebugCommandHandler
(JavaPlugin plugin, File pluginFile, String permission, DebugCommandMessages messages) Constructor for DebugCommandHandler. -
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, String[] args) onTabComplete
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, String[] args)
-
Constructor Details
-
DebugCommandHandler
Constructor for DebugCommandHandler.- Parameters:
plugin
- the JavaPlugin instancepluginFile
- the file of the plugin, used to generate a hash. Can be obtained using JavaPlugin#getFile(} inside a plugin's main class.permission
- the permission required to execute the command
-
DebugCommandHandler
public DebugCommandHandler(JavaPlugin plugin, File pluginFile, String permission, DebugCommandMessages messages) Constructor for DebugCommandHandler.- Parameters:
plugin
- the JavaPlugin instancepluginFile
- the file of the plugin, used to generate a hash. Can be obtained using JavaPlugin#getFile(} inside a plugin's main class.permission
- the permission required to execute the commandmessages
- the messages used in the command
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String label, String[] args) - Specified by:
onCommand
in interfaceCommandExecutor
-
onTabComplete
@Nullable public @Nullable List<String> onTabComplete(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String alias, String[] args) - Specified by:
onTabComplete
in interfaceTabCompleter
-