View Javadoc
1   package dev.sympho.modular_commands.api.command.result;
2   
3   import dev.sympho.modular_commands.api.command.parameter.Parameter;
4   
5   /**
6    * Failure result due to a required argument not being provided.
7    *
8    * @param parameter The missing parameter.
9    * @version 1.0
10   * @since 1.0
11   */
12  public record CommandFailureArgumentMissing( Parameter<?> parameter ) 
13          implements CommandFailureArgument {
14  
15      @Override
16      public String message() {
17  
18          return String.format( "Missing required argument: %s", parameter.name() );
19  
20      }
21      
22  }