public class BindCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
private CommandCallback |
commandCallback
The
CommandCallback to use. |
private GUICommandFactory |
guiCommandFactory
The
GUICommandFactory for creating commands. |
Constructor and Description |
---|
BindCommand(CrossfireServerConnection crossfireServerConnection,
CommandCallback commandCallback,
GUICommandFactory guiCommandFactory)
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 use.@NotNull private final GUICommandFactory guiCommandFactory
GUICommandFactory
for creating commands.public BindCommand(@NotNull CrossfireServerConnection crossfireServerConnection, @NotNull CommandCallback commandCallback, @NotNull GUICommandFactory guiCommandFactory)
crossfireServerConnection
- the connection instancecommandCallback
- the command callback to useguiCommandFactory
- the gui command factory for creating commandspublic boolean allArguments()
public void execute(@NotNull java.lang.String args)
args
- the command arguments