Plotz Schematic Downloader

Oct 23, 2015
Plotz Schematic Downloader
  • [​IMG]
    The schematic downloader is used to allow your users to download their plot as a schematic file. To do this we set up a small web server on a certain port and address. Users connect to the IP address and they are able to access their builds.

    1. Enable the web front in the webserver.yml file (/plugins/plotz/webserver.yml)
      Code (Text):
      enabled: true
    2. Set the port for the server to listen on (webserver.yml)
      * Note the default http port is 80, so set this to 80 in the instance you want to connect with 1.1.1.1 instead of 1.1.1.1:80
      Code (Text):
      port: 8888
    3. Set the IP for the server to listen on.
      0.0.0.0 or localhost will work best.
      Code (Text):
      host: localhost
    4. Set a value for a maximum number of connections at a time. The default value should work fine in most instances. If you notice you are being cut off, raise the value.
      Code (Text):
      max-connections: 25
    5. Open the lang.yml file (/plugins/plotz/lang.yml)
    6. Find the schematic section
      Code (Text):

      # Schematic
      plot-schematic-output: '%prefix% Saved schematic! You can download your schematic at %url%, just type in your name'
      plot-schematic-error: '%prefix% An error occured while saving your schematic, please try again later'
      plot-schematic-enable: '%prefix% This feature is not enabled, try again later'
      plot-schematic-url: 'http://127.0.0.1:8888/schematics/%name%'
      plot-schematic-info: '%prefix% Save your plot as a schematic to download'
       
    7. Change the plot-schematic-url value to your public IP and port, the name variable will remain the same.
    8. That's it!

    Extra notes: Players are able to spam the /plot schematic command to crash or lag your server, install a command rate limiting plugin such as Command Cooldown

    Code (Text):

    # Enable the schematic downloader?
    enabled: true

    # Port the server will listen on
    port: 8888

    # Log interactions to a file?
    log: true

    # Host url/ip
    host: localhost

    # Maximum accepted connections at a time
    max-connections: 25
     
  • Loading...
  • Loading...