NiftyEventpublic class ConsoleExecuteCommandEvent extends java.lang.Object implements NiftyEvent
| Constructor | Description |
|---|---|
ConsoleExecuteCommandEvent(Console console,
java.lang.String commandLine) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getArgumentCount() |
Get the number of arguments, that means all arguments (separated by whitespace).
|
java.lang.String[] |
getArguments() |
Get all of the command arguments as an array.
|
java.lang.String |
getCommand() |
Get the command (the first string in the whitespace separated commandline).
|
java.lang.String |
getCommandLine() |
Get the complete command line as send from the console.
|
Console |
getConsole() |
public ConsoleExecuteCommandEvent(@Nonnull
Console console,
@Nullable
java.lang.String commandLine)
@Nonnull public Console getConsole()
@Nonnull public java.lang.String getCommandLine()
public int getArgumentCount()
@Nonnull public java.lang.String getCommand()
@Nonnull public java.lang.String[] getArguments()
Copyright © 2018. All rights reserved.