 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.commands;
28 import java.util.Collection;
29 import org.jetbrains.annotations.NotNull;
59 public void execute(@NotNull
final String args) {
61 if (scriptProcesses.isEmpty()) {
72 final StringBuilder sb =
new StringBuilder();
73 sb.append(
"Stops a running client-sided scripts\n");
75 sb.append(
"Usage: scriptkillall\n");
76 sb.append(
"Usage: scriptkillall <script>\n");
78 sb.append(
"Stops the running client-sided scripts <script>. ");
79 sb.append(
"<script> is the ID of a running client-sided script or the partial name of a running client-sided script. ");
80 sb.append(
"If <script> is omitted, all running client-sided-scripts are killed. Otherwise all matching client-sided scripts are killed.\n");
81 sb.append(
"Note: Kill only one client-sided script: scriptkill\n");
An external command executed as a client-sided script.
Set< ScriptProcess > getScripts(@NotNull final String partialScriptName)
Returns all running scripts matching a given (partial) name or a script ID.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
boolean hasScripts()
Returns whether at least one script is running.
Abstract base class for Command implementations.
void killScript()
Kills the script process.
void drawInfoError(@NotNull final String message)
Displays an error message.
Maintains currently running script processes.
final ScriptManager scriptManager
The ScriptManager to use.
String getHelp()
Returns the help text for this command.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
boolean allArguments()
Returns whether all remaining commands should be included as arguments.
ScriptkillallCommand(@NotNull final ScriptManager scriptManager, @NotNull final CrossfireServerConnection crossfireServerConnection)
Creates a new instance.
void execute(@NotNull final String args)
Executes the command with the given arguments.
Implements the "scriptkillall" command.