Class CommandContext

java.lang.Object
com.kamikazejam.kamicommon.command.CommandContext

public class CommandContext extends Object
The state of a single command invocation, handed to KamiCommand.perform(CommandContext). It carries the sender, the alias actually typed, the raw arguments, and the read cursor that KamiCommand.readArg() advances. The framework builds one per execution and clears it once execution ends, so it is valid only inside perform and must not be retained or read from another thread.
See Also:
  • Constructor Details

    • CommandContext

      public CommandContext(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String label, @NotNull @NotNull List<String> args)