Class ParsedCommand

java.lang.Object
net.minestom.server.command.builder.ParsedCommand

public class ParsedCommand extends Object
Represents a Command ready to be executed (already parsed).
  • Method Details

    • execute

      @Nullable public @Nullable CommandData execute(@NotNull @NotNull CommandSender source)
      Executes the command for the given source.

      The command will not be executed if Command.getCondition() is not validated.

      Parameters:
      source - the command source
      Returns:
      the command data, null if none
    • fromExecutable

      @NotNull public static @NotNull ParsedCommand fromExecutable(ExecutableCommand executableCommand)