Interface ADPExecutableCommand
-
- All Known Implementing Classes:
ADPMainCommand,ADPSubCommand
public interface ADPExecutableCommand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NotNull ADPCommandgetCommand()Command enum@NotNull StringgetCommandName()Name of this commanddefault @NotNull StringgetConsoleSyntax()Get the console command syntax@Nullable StringgetDescription()Get the command description@NotNull StringgetHelp()Get the command help@NotNull StringgetRunCommand()Get the run command command syntax@NotNull StringgetSyntax()Get the command syntaxdefault @NotNull StringgetSyntaxForUser(User user)Get the command syntax for the given userbooleanisExecutableByConsole()Is the command executable by consolebooleanisListedInHelp()Is this command listed in help page
-
-
-
Method Detail
-
getCommand
@NotNull @NotNull ADPCommand getCommand()
Command enum- Returns:
- the command enum
-
getCommandName
@NotNull @NotNull String getCommandName()
Name of this command- Returns:
- the command name
-
isListedInHelp
boolean isListedInHelp()
Is this command listed in help page- Returns:
- true if this command is listed in help page
-
getDescription
@Nullable @Nullable String getDescription()
Get the command description- Returns:
- the command description
-
getHelp
@NotNull @NotNull String getHelp()
Get the command help- Returns:
- the command help
-
getSyntax
@NotNull @NotNull String getSyntax()
Get the command syntax- Returns:
- the command syntax
-
getSyntaxForUser
@NotNull default @NotNull String getSyntaxForUser(User user)
Get the command syntax for the given user- Parameters:
user- the user for the syntax- Returns:
- the command syntax
-
getConsoleSyntax
@NotNull default @NotNull String getConsoleSyntax()
Get the console command syntax- Returns:
- syntax of the command run in console
-
getRunCommand
@NotNull @NotNull String getRunCommand()
Get the run command command syntax- Returns:
- the run command syntax
-
isExecutableByConsole
boolean isExecutableByConsole()
Is the command executable by console- Returns:
- true if is executable
-
-