T - the sender typepublic interface CommandContext<T extends CommandSender>
| Modifier and Type | Method and Description |
|---|---|
Argument |
arg(int index)
Gets the argument at a the given index
|
ImmutableList<String> |
args()
Gets an immutable list of the supplied arguments
|
String |
label()
Gets the command label which was used to execute this command
|
String |
rawArg(int index)
Gets the argument at the given index.
|
default void |
reply(String... message)
Sends a message to the
sender(). |
T |
sender()
Gets the sender who executed the command
|
@Nonnull T sender()
default void reply(String... message)
sender().message - the message to send@Nonnull ImmutableList<String> args()
@Nonnull Argument arg(int index)
index - the index@Nullable String rawArg(int index)
index - the indexCopyright © 2020. All rights reserved.