T - the sender typepublic interface CommandContext<T extends org.bukkit.command.CommandSender>
| Modifier and Type | Method and Description |
|---|---|
List<String> |
aliases()
Gets the aliases of the command.
|
Argument |
arg(int index)
Gets the argument at a the given index
|
com.google.common.collect.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 com.google.common.collect.ImmutableList<String> args()
@Nonnull Argument arg(int index)
index - the index@Nullable String rawArg(int index)
index - the index@Nonnull String label()
Copyright © 2022. All rights reserved.