public class AgainCommand extends AbstractCommand
Constructor and Description |
---|
AgainCommand(@NotNull CrossfireServerConnection crossfireServerConnection,
@NotNull CommandExecutor commandExecutor,
@NotNull CommandHistory commandHistory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allArguments()
Returns whether all remaining commands should be included as arguments.
|
void |
execute(@NotNull java.lang.String args)
Executes the command with the given arguments.
|
@NotNull java.lang.String |
getHelp()
Returns the help text for this command.
|
drawInfo, drawInfo, drawInfoError, getCommandName, toString
public AgainCommand(@NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull CommandExecutor commandExecutor, @NotNull @NotNull CommandHistory commandHistory)
crossfireServerConnection
- the connection instancecommandExecutor
- the command executor for executing the commandscommandHistory
- the command history for determining the command to
executepublic boolean allArguments()
Command
public void execute(@NotNull @NotNull java.lang.String args)
Command
args
- the command arguments@NotNull public @NotNull java.lang.String getHelp()
Command