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(String modrinthId, JavaPlugin plugin, File pluginFile, String permission, Messenger messenger) Constructor for DebugCommandHandler.DebugCommandHandler(String modrinthId, JavaPlugin plugin, File pluginFile, String permission, Map<String, String> configs, DebugCommandMessages messages, Messenger messenger) Constructor for DebugCommandHandler.DebugCommandHandler(String modrinthId, JavaPlugin plugin, File pluginFile, String permission, Map<String, String> configs, Messenger messenger) Constructor for DebugCommandHandler. -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(@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
public DebugCommandHandler(String modrinthId, JavaPlugin plugin, File pluginFile, String permission, Messenger messenger) Constructor for DebugCommandHandler.- Parameters:
modrinthId- the Modrinth ID of the plugin, used to identify the reportplugin- 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(String modrinthId, JavaPlugin plugin, File pluginFile, String permission, Map<String, String> configs, Messenger messenger) Constructor for DebugCommandHandler.- Parameters:
modrinthId- the Modrinth ID of the plugin, used to identify the reportplugin- 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 commandconfigs- a map of configuration settings, where the key is the configuration file name and the value is the configuration saved as a string
-
DebugCommandHandler
public DebugCommandHandler(String modrinthId, JavaPlugin plugin, File pluginFile, String permission, Map<String, String> configs, DebugCommandMessages messages, Messenger messenger) Constructor for DebugCommandHandler.- Parameters:
modrinthId- the Modrinth ID of the plugin, used to identify the reportplugin- 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 commandconfigs- a map of configuration settings, where the key is the configuration file name and the value is the configuration saved as a stringmessages- 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:
onCommandin interfaceCommandExecutor
-
onTabComplete
@Nullable public @Nullable List<String> onTabComplete(@NotNull @NotNull CommandSender sender, @NotNull @NotNull Command command, @NotNull @NotNull String alias, String[] args) - Specified by:
onTabCompletein interfaceTabCompleter
-