Record Class CommandResult

java.lang.Object
java.lang.Record
dev.jorel.commandapi.wrappers.CommandResult

public record CommandResult(org.bukkit.command.Command command, String[] args) extends Record
CommandResult represents an executable command. It contains the following methods:
  • command - the command which this CommandResult contains
  • args - the arguments that were provided to this command
  • execute(CommandSender) - Run the command using the given CommandSender directly