 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.commands;
29 import org.jetbrains.annotations.NotNull;
59 public void execute(@NotNull
final String args) {
78 final StringBuilder sb =
new StringBuilder();
79 sb.append(
"Executes a client-sided action\n");
81 sb.append(
"Usage: exec <command>\n");
83 sb.append(
"Available client sided actions are:\n");
85 sb.append(
"- ").append(command).append(
"\n");
Collection< String > getCommandListNames()
Returns all command list names.
CommandList getCommandList(@NotNull String args)
Returns a command list.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
boolean allArguments()
Returns whether all remaining commands should be included as arguments.
Abstract base class for Command implementations.
void execute(@NotNull final String args)
Executes the command with the given arguments.
void drawInfoError(@NotNull final String message)
Displays an error message.
An Exception thrown if a command does not exist.
String getHelp()
Returns the help text for this command.
ExecCommand(@NotNull final CommandCallback commandCallback, @NotNull final CrossfireServerConnection crossfireServerConnection)
Creates a new instance.
final CommandCallback commandCallback
The CommandCallback to lookup commands.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
void execute()
Execute the command list by calling GUICommand#execute() for each command in order.
A list of GUICommand instances.
Interface that defines callback functions needed by commands.
Implements the "exec" command.