22 package com.realtime.crossfire.jxclient.commands;
26 import org.jetbrains.annotations.NotNull;
63 final Command command = commandExec.getCommand();
64 if (command == null) {
65 commandQueue.
sendNcom(
false, commandExec.getArgs());
67 command.
execute(commandExec.getArgs());
Implements a client-side command.
void sendNcom(final boolean mustSend, @NotNull final String command)
Sends an "ncom" command to the server.
final Commands commands
The Commands to consider.
Expands a command (or list of commands) into a sequence of Commands to execute.
A Command instance and its arguments.
static Collection< CommandExec > expand(@NotNull final CharSequence commandList, @NotNull final Commands commands)
Expands a command list into a sequence of Commands to execute.
final CommandQueue commandQueue
The command queue for sending commands.
void execute(@NotNull String args)
Executes the command with the given arguments.
CommandExecutorImpl(@NotNull final CommandQueue commandQueue, @NotNull final Commands commands)
Creates a new instance.
Maintains the pending (ncom) commands sent to the server.
void executeCommand(@NotNull final CharSequence commandLine)
Executes a command or a list of commands.The commands may be a client- or a server-sided command...
Parses and executes client-side commands.