public class HelpCommand extends AbstractCommand
Constructor and Description |
---|
HelpCommand(@NotNull CrossfireServerConnection crossfireServerConnection,
@NotNull CommandQueue commandQueue,
@NotNull Commands commands)
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 HelpCommand(@NotNull @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull @NotNull CommandQueue commandQueue, @NotNull @NotNull Commands commands)
crossfireServerConnection
- the connection instancecommandQueue
- the command queue instance for sending "help"
commands to the servercommands
- all defined client-sided commandspublic 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