public class ExecCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
private CommandCallback |
commandCallback
The
CommandCallback to lookup commands. |
Constructor and Description |
---|
ExecCommand(CommandCallback commandCallback,
CrossfireServerConnection crossfireServerConnection)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allArguments()
Returns whether all remaining commands should be included as arguments.
|
void |
execute(java.lang.String args)
Executes the command with the given arguments.
|
drawInfo, drawInfo, drawInfoError, getCommandName, toString
@NotNull private final CommandCallback commandCallback
CommandCallback
to lookup commands.public ExecCommand(@NotNull CommandCallback commandCallback, @NotNull CrossfireServerConnection crossfireServerConnection)
commandCallback
- the command callback to lookup commandscrossfireServerConnection
- the connection instancepublic boolean allArguments()
public void execute(@NotNull java.lang.String args)
args
- the command arguments