Interface Command
-
- All Known Implementing Classes:
AbstractCommand,AgainCommand,BindCommand,BindingsCommand,ClearCommand,DebugMessagesCommand,ExecCommand,ScreenshotCommand,ScriptCommand,ScriptkillallCommand,ScriptkillCommand,ScriptsCommand,ScripttellCommand,SetCommand,UnbindCommand
public interface CommandImplements a client-side command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallArguments()Returns whether all remaining commands should be included as arguments.voidexecute(@NotNull java.lang.String args)Executes the command with the given arguments.@NotNull java.lang.StringgetCommandName()Returns the name of the command.
-
-
-
Method Detail
-
getCommandName
@NotNull @NotNull java.lang.String getCommandName()
Returns the name of the command.- Returns:
- the name
-
allArguments
boolean allArguments()
Returns whether all remaining commands should be included as arguments.- Returns:
- whether all remaining commands should be included as arguments
-
execute
void execute(@NotNull @NotNull java.lang.String args)Executes the command with the given arguments.- Parameters:
args- the command arguments
-
-