Git Product home page Git Product logo

mcdrdebugger's Introduction

MCDRDebugger

A small tool which can debug your mcdr plugin faster :)

CLI Usage

  • python3 main.py gen_config: Generate a default config file(env1.json) in current path.
  • python3 main.py init <config_file_path>: Init a testing environment. You will debug your plugin by this environment.
  • python3 main.py test <config_file_path>: Test your plugin.

I add many interesting sayings in logs, try it and see(

Considering that python3 main.py test ./env1.json is a little bit long, you can edit the t.sh file and use it instead.

Config

        ##########
        # Log
        
        debug
        # Default: false


        ##########
        # minecraft server configurations
        
        core_server_url
        # if this is empty, we will not download server core file
        # will download server core file from this url
        # Default: 1.20.4 vanilla server url from mojang
        
        auto_eula
        # should I agree the eula automatically?
        # Default: False


        ##########
        # mcdreforged configurations
        
        plugins
        # did you need other mcdr plugins? add the download url here!
        # Default: empty list
        
        python_path
        # python executable file path
        # Default: blank (will use 'python3 ...' command in default shell later)
        
        pip_path
        # pip executable file path
        # Default: blank (will use 'pip3 ...' command in default shell later)
        
        env_path
        # will init mcdr in this path
        # Default: ./env


        ##########
        # mcdreforged plugin packaging configurations
        
        method
        # how can I package your plugin?
        # Options:
        #   mcdr_command: use mcdr pack command
        #   folder: move the whole folder to the 'plugins' folder
        #   single_file: move the single file to the 'plugins' folder
        # Default: mcdr_command
        
        plugin_code_path
        # the whole plugin code should in this path
        # you must change it
        # if you choose 'mcdr_command', we will execute pack command in this folder
        # if you choose 'folder', we will move this folder to 'plugins' folder
        # if you choose 'single_file', this path must be a file, maybe '.py' or '.mcdr'
        # Default: ./code
        
        mcdr_pack_extra_options
        # did you want to add some extra options when packing plugin by mcdr pack command?
        # see mcdr official docs for more details
        # -i & -o options will be filled automatically by this script. You mustn't add -i or -o option.
        # Default: --ignore-file .gitignore

mcdrdebugger's People

Contributors

optijava avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.