Interface CommandContext
-
- All Known Implementing Classes:
SimpleCommandContext
public interface CommandContext
An interface that represents context of the executed command.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull @Unmodifiable List<Argument>getArguments()Gets the given arguments.@NotNull CommandgetCommand()Gets the executed command.@NotNull StringgetLabel()Gets the string used to specify the command.@NotNull SendergetSender()Gets the commander.
-
-
-
Method Detail
-
getCommand
@NotNull @NotNull Command getCommand()
Gets the executed command.- Returns:
- the executed command
-
getArguments
@NotNull @NotNull @Unmodifiable List<Argument> getArguments()
Gets the given arguments.- Returns:
- the given arguments
-
getLabel
@NotNull @NotNull String getLabel()
Gets the string used to specify the command.It may always return the same string as
Command.getName().- Returns:
- the string used to specify the command
-
-