public class SetCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
private OptionManager |
optionManager
The option manager instance.
|
Constructor and Description |
---|
SetCommand(CrossfireServerConnection crossfireServerConnection,
OptionManager optionManager)
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 OptionManager optionManager
public SetCommand(@NotNull CrossfireServerConnection crossfireServerConnection, @NotNull OptionManager optionManager)
crossfireServerConnection
- the connection instanceoptionManager
- the option manager to usepublic boolean allArguments()
public void execute(@NotNull java.lang.String args)
args
- the command arguments