Interface GravesXModuleCommand
- All Superinterfaces:
org.bukkit.command.CommandExecutor
public interface GravesXModuleCommand
extends org.bukkit.command.CommandExecutor
Command executor with optional metadata used by the module registrar
to auto-fill name, description, usage, permission, and aliases.
-
Method Summary
Modifier and TypeMethodDescriptionAdditional names that run the same command.default StringShort help text shown in command lists.default StringgetName()Command name override.default StringPermission node required to run the command.default StringgetUsage()Usage string shown on errors or help.Methods inherited from interface org.bukkit.command.CommandExecutor
onCommand
-
Method Details
-
getName
Command name override. If different from the YAML key, it may be added as an alias.- Returns:
- Command name or
nullto keep the YAML/default.
-
getDescription
Short help text shown in command lists.- Returns:
- Description string, empty if none.
-
getUsage
Usage string shown on errors or help.- Returns:
- Usage text (e.g.
"/cmd <arg>"), ornullfor default.
-
getPermission
Permission node required to run the command.- Returns:
- Permission node or
nullfor default.
-
getAliases
Additional names that run the same command.- Returns:
- List of aliases, possibly empty.
-