 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.commands;
27 import org.jetbrains.annotations.NotNull;
57 public void execute(@NotNull
final String args) {
70 final StringBuilder sb =
new StringBuilder();
71 sb.append(
"Starts a client-sided script\n");
73 sb.append(
"Usage: script <command>\n");
75 sb.append(
"Starts the external command <command> as a client-sided script. ");
76 sb.append(
"<command> is an arbitrary external program that implements the protocol for client-sided scripts.\n");
77 sb.append(
"Note: List running client-sided scripts: scripts\n");
78 sb.append(
"Note: Stop a client-sided script: scriptkill\n");
String getHelp()
Returns the help text for this command.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
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.
Maintains currently running script processes.
void newScript(@NotNull final String command)
Creates a new script instance.
Implements the "script" command.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
ScriptCommand(@NotNull final ScriptManager scriptManager, @NotNull final CrossfireServerConnection crossfireServerConnection)
Creates a new instance.
final ScriptManager scriptManager
The ScriptManager to use.
boolean allArguments()
Returns whether all remaining commands should be included as arguments.