Package fr.maxlego08.menu.api.command
Interface Command
public interface Command
Represents a command that opens an
Inventory.-
Method Summary
Modifier and TypeMethodDescriptionGets the aliases for the command.Gets the list of command arguments.Gets the primary command name.Gets the list of command arguments as strings.getFile()Gets the file associated with the command.Gets the name of the inventory to open when the command is executed.getPath()Gets the path of the command in the configuration file.Gets the permission required to execute the command.org.bukkit.plugin.PluginGets the plugin associated with the command.booleanChecks if the command has any arguments.
-
Method Details
-
getCommand
String getCommand()Gets the primary command name.- Returns:
- The primary command name.
-
getAliases
Gets the aliases for the command.- Returns:
- The list of command aliases.
-
getPermission
String getPermission()Gets the permission required to execute the command.- Returns:
- The permission node required to execute the command.
-
getInventory
String getInventory()Gets the name of the inventory to open when the command is executed.- Returns:
- The name of the inventory.
-
getPlugin
org.bukkit.plugin.Plugin getPlugin()Gets the plugin associated with the command.- Returns:
- The plugin associated with the command.
-
getArguments
List<CommandArgument> getArguments()Gets the list of command arguments.- Returns:
- The list of command arguments.
-
getCommandArguments
Gets the list of command arguments as strings.- Returns:
- The list of command arguments as strings.
-
hasArgument
boolean hasArgument()Checks if the command has any arguments.- Returns:
trueif the command has arguments, otherwisefalse.
-
getFile
File getFile()Gets the file associated with the command.- Returns:
- The file associated with the command.
-
getPath
String getPath()Gets the path of the command in the configuration file.- Returns:
- The path of the command in the configuration file.
-