Interface SpecialArgumentHandler

    • Method Detail

      • handle

        @NonNull String handle​(CommandSender sender,
                               Command command,
                               String[] args,
                               int i)
        Handle the special argument
        Parameters:
        sender - the sender of the command
        command - the command
        args - the arguments
        i - the index of the argument
        Returns:
        the argument after handle
      • handle

        default @NonNull String handle​(String name,
                                       CommandSender sender,
                                       Command command,
                                       String[] args,
                                       int i,
                                       String... arguments)
        Description copied from interface: SpecialArgumentComplexHandler
        Handle the special argument
        Specified by:
        handle in interface SpecialArgumentComplexHandler
        Parameters:
        name - the name of the special argument
        sender - the sender of the command
        command - the command
        args - the arguments of the command
        i - the index of the argument
        arguments - the arguments of the special argument
        Returns:
        the argument after handle