Argument
Arguments are used to parse the command sender's input and complete the command.
@Command(name = "ban")
public class BanCommand {
@Execute
public void ban(
@Arg Player player,
@Flag("-s") boolean isSilent,
@Join String reason
) {
// Command implementation ...
}
}
See subtopics for more information about arguments.
Last modified: 20 May 2024